Fix error checking logic.

svn path=/trunk/; revision=45144
This commit is contained in:
Gerald Combs 2012-09-25 23:29:47 +00:00
parent d249038a65
commit f60693dbea
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ win32_save_as_file(HWND h_wnd, capture_file *cf, GString *file_name, int *file_t
*compressed = g_compressed;
} else {
/* User cancelled or closed the dialog, or an error occurred. */
if (CommDlgExtendedError() == 0) {
if (CommDlgExtendedError() != 0) {
/* XXX - pop up some error here. FNERR_INVALIDFILENAME
* might be a user error; if so, they should know about
* it. For now we force a do-over.