Skip to content
Snippets Groups Projects
Commit 23b06a8f authored by Nick Holloway's avatar Nick Holloway Committed by Alexandre Julliard
Browse files

Bug fix.

parent 72b27923
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment