Initialize lpstrInitialDir to really bogus value to restore original

value later.
This commit is contained in:
Dmitry Timoshkov 2000-08-11 00:40:00 +00:00 committed by Alexandre Julliard
parent d45aeda7bf
commit 1effe07983
1 changed files with 2 additions and 2 deletions

View File

@ -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;