Commit 23b06a8f authored by Nick Holloway's avatar Nick Holloway Committed by Alexandre Julliard

Bug fix.

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