summaryrefslogtreecommitdiff
path: root/src/core/stdfile/filesenddlg.cpp
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-11-27 01:26:26 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-11-27 01:26:26 +0000
commitf5c584f3073bbe65bbf4794e555aabd651476612 (patch)
treee7d4d3bdc9305906c904a40c92f7060f538be9ce /src/core/stdfile/filesenddlg.cpp
parent807f8ca306c10945f0dfddb0847ea5d96691d37a (diff)
StdFile: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11116 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdfile/filesenddlg.cpp')
-rw-r--r--src/core/stdfile/filesenddlg.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/stdfile/filesenddlg.cpp b/src/core/stdfile/filesenddlg.cpp
index 2772e9503c..b6fdfe2ec4 100644
--- a/src/core/stdfile/filesenddlg.cpp
+++ b/src/core/stdfile/filesenddlg.cpp
@@ -363,9 +363,8 @@ INT_PTR CALLBACK DlgProcSendFile(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM l
Button_FreeIcon_IcoLib(hwndDlg, IDC_HISTORY);
Button_FreeIcon_IcoLib(hwndDlg, IDC_USERMENU);
- if (dat)
- FreeFileDlgData(dat);
-
+ FreeFileDlgData(dat);
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, 0);
return TRUE;
}
return FALSE;