This commit is contained in:
Nick Holloway 1998-10-23 17:26:44 +00:00 committed by Alexandre Julliard
parent 72b279236e
commit 23b06a8f18
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ static LRESULT FILEDLG_WMCommand(HWND16 hWnd, WPARAM16 wParam, LPARAM lParam)
lpofn->nFileExtension = 0;
while(tmpstr2[lpofn->nFileExtension] != '.' && tmpstr2[lpofn->nFileExtension] != '\0')
lpofn->nFileExtension++;
if (lpofn->nFileExtension == '\0')
if (tmpstr2[lpofn->nFileExtension] == '\0')
lpofn->nFileExtension = 0;
else
lpofn->nFileExtension++;