mirror of https://github.com/OpenVPN/openvpn-gui
Ensure dialogResult is initialized before use
Signed-off-by: Selva Nair <selva.nair@gmail.com>pull/462/head
parent
b19965dd2b
commit
ef14a62d34
|
@ -490,7 +490,7 @@ static BOOL
|
|||
BrowseFolder (const WCHAR* initial_path, WCHAR* selected_path, size_t selected_path_size)
|
||||
{
|
||||
IFileOpenDialog* pfd;
|
||||
HRESULT initResult, result, dialogResult;
|
||||
HRESULT initResult, result, dialogResult = E_FAIL;
|
||||
|
||||
// Create dialog
|
||||
initResult = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
|
||||
|
|
Loading…
Reference in New Issue