From a93391bc7442c024d5e795e207b8422883e7bfdf Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 18 Aug 2014 21:02:24 +0000 Subject: Tox: - save our id in database - first approach of user info support git-svn-id: http://svn.miranda-ng.org/main/trunk@10233 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src/tox_options.cpp') diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp index 61df8854e9..ddbed584a6 100644 --- a/protocols/Tox/src/tox_options.cpp +++ b/protocols/Tox/src/tox_options.cpp @@ -86,7 +86,7 @@ INT_PTR CALLBACK CToxProto::MainOptionsProc(HWND hwnd, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK CToxProto::ToxProfileManagerProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { CToxProto *proto = (CToxProto*)GetWindowLongPtr(hwnd, GWLP_USERDATA); - TCHAR *profilePath = (TCHAR*)GetWindowLongPtr(hwnd, DWL_USER); + TCHAR *profilePath = (TCHAR*)GetWindowLongPtr(hwnd, DWLP_USER); switch (uMsg) { @@ -97,7 +97,7 @@ INT_PTR CALLBACK CToxProto::ToxProfileManagerProc(HWND hwnd, UINT uMsg, WPARAM w SetWindowLongPtr(hwnd, GWLP_USERDATA, lParam); profilePath = (TCHAR*)mir_calloc(sizeof(TCHAR) * MAX_PATH); - SetWindowLongPtr(hwnd, DWL_USER, (LONG_PTR)profilePath); + SetWindowLongPtr(hwnd, DWLP_USER, (LONG_PTR)profilePath); CheckDlgButton(hwnd, IDC_CREATE_NEW, TRUE); } -- cgit v1.2.3