Commit 1effe079 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Initialize lpstrInitialDir to really bogus value to restore original

value later.
parent d45aeda7
......@@ -238,7 +238,7 @@ BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType)
BOOL ret;
FileOpenDlgInfos *fodInfos;
HINSTANCE hInstance;
LPCSTR lpstrInitialDir = NULL;
LPCSTR lpstrInitialDir = (LPCSTR)-1;
DWORD dwFlags = 0;
/* Initialise FileOpenDlgInfos structure*/
......@@ -280,7 +280,7 @@ BOOL WINAPI GetFileDialog95A(LPOPENFILENAMEA ofn,UINT iDlgType)
ret = 0;
}
if (lpstrInitialDir)
if (lpstrInitialDir != (LPCSTR)-1)
{
MemFree((LPVOID)(ofn->lpstrInitialDir));
ofn->lpstrInitialDir = lpstrInitialDir;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment