diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-09-25 23:29:47 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-09-25 23:29:47 +0000 |
commit | f60693dbea2fe47ad61d2e2af9188f98ed83263f (patch) | |
tree | 48021d877b64718cff02d722f32808a73cc8a1b9 /ui/win32 | |
parent | d249038a656f53f2fb172be0224243822d0f1c7d (diff) |
Fix error checking logic.
svn path=/trunk/; revision=45144
Diffstat (limited to 'ui/win32')
-rw-r--r-- | ui/win32/file_dlg_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index 18456c9ed6..fef9e49c3f 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -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. |