aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-09-25 23:29:47 +0000
committerGerald Combs <gerald@wireshark.org>2012-09-25 23:29:47 +0000
commitf60693dbea2fe47ad61d2e2af9188f98ed83263f (patch)
tree48021d877b64718cff02d722f32808a73cc8a1b9
parentd249038a656f53f2fb172be0224243822d0f1c7d (diff)
Fix error checking logic.
svn path=/trunk/; revision=45144
-rw-r--r--ui/win32/file_dlg_win32.c2
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.