diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-10-15 01:10:52 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-10-15 01:10:52 +0000 |
commit | bc3cd5611e4c0c742aa0c940a6daaf891f614818 (patch) | |
tree | f93f19f0521d7bed573841bd0e8f9f82a71b38e9 /ui/win32 | |
parent | 2b0c8b1c7179964e7671787f7d3af736260c2830 (diff) |
Make sure we have a valid capture file pointer in win32_export_file().
Fixes bug 9271.
svn path=/trunk/; revision=52612
Diffstat (limited to 'ui/win32')
-rw-r--r-- | ui/win32/file_dlg_win32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index c31193f809..b2d8d29128 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -614,6 +614,8 @@ win32_export_file(HWND h_wnd, capture_file *cf, export_type_e export_type) { OSVERSIONINFO osvi; #endif + g_cf = cf; + /* see OPENFILENAME comment in win32_open_file */ #if (_MSC_VER >= 1500) SecureZeroMemory(&osvi, sizeof(OSVERSIONINFO)); @@ -714,6 +716,7 @@ win32_export_file(HWND h_wnd, capture_file *cf, export_type_e export_type) { set_last_open_dir(dirname); } + g_cf = NULL; g_free( (void *) ofn); } |