aboutsummaryrefslogtreecommitdiffstats
path: root/ui/win32
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-07-11 21:25:42 +0000
committerGerald Combs <gerald@wireshark.org>2012-07-11 21:25:42 +0000
commitc7c73e44b56459ed32ef8d70abf9a5d038dfab4f (patch)
tree55391557a37d08e9336638ed9b669ad231f3083a /ui/win32
parente7b8e93e2790b192107dc7190f11cd4b4b0b0788 (diff)
MSDN says DIALOG resources are obsolete. Use DIALOGEXes instead. We aren't
adding extra controls to the save dialog any more so remove its template. svn path=/trunk/; revision=43676
Diffstat (limited to 'ui/win32')
-rw-r--r--ui/win32/file_dlg_win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index d3e975cd39..df5866094e 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -428,12 +428,12 @@ win32_save_as_file(HWND h_wnd, capture_file *cf,
ofn->nMaxFileTitle = 0;
ofn->lpstrInitialDir = utf_8to16(get_last_open_dir());
ofn->lpstrTitle = _T("Wireshark: Save file as");
- ofn->Flags = OFN_ENABLESIZING | OFN_ENABLETEMPLATE | OFN_EXPLORER |
+ ofn->Flags = OFN_ENABLESIZING | OFN_EXPLORER |
OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY |
OFN_PATHMUSTEXIST | OFN_ENABLEHOOK | OFN_SHOWHELP;
ofn->lpstrDefExt = NULL;
ofn->lpfnHook = save_as_file_hook_proc;
- ofn->lpTemplateName = _T("WIRESHARK_SAVEFILENAME_TEMPLATE");
+ ofn->lpTemplateName = NULL;
if (!GetSaveFileName(ofn)) {
/* User cancelled or closed the dialog, or an error occurred. */
@@ -485,7 +485,7 @@ win32_save_as_file(HWND h_wnd, capture_file *cf,
case CANCELLED:
/* The user said "forget it". Just return. */
return FALSE; /* No save, no comments discarded */
- }
+ }
/*
* Append the default file extension if there's none given by