Ensure dialogResult is initialized before use

Signed-off-by: Selva Nair <selva.nair@gmail.com>
pull/462/head
Selva Nair 2021-01-27 21:22:18 -05:00
parent b19965dd2b
commit ef14a62d34
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ static BOOL
BrowseFolder (const WCHAR* initial_path, WCHAR* selected_path, size_t selected_path_size) BrowseFolder (const WCHAR* initial_path, WCHAR* selected_path, size_t selected_path_size)
{ {
IFileOpenDialog* pfd; IFileOpenDialog* pfd;
HRESULT initResult, result, dialogResult; HRESULT initResult, result, dialogResult = E_FAIL;
// Create dialog // Create dialog
initResult = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); initResult = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);