From 5975b2d0903bd5df128d55e20cd27d7c13b4e46c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 16 Jun 2012 17:42:08 +0000 Subject: another portion of "#ifdef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@448 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AssocMgr/dde.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/AssocMgr/dde.cpp') diff --git a/plugins/AssocMgr/dde.cpp b/plugins/AssocMgr/dde.cpp index dc03e7e0cc..a8328b4d34 100644 --- a/plugins/AssocMgr/dde.cpp +++ b/plugins/AssocMgr/dde.cpp @@ -109,10 +109,10 @@ static LRESULT CALLBACK DdeMessageWindow(HWND hwnd,UINT msg,WPARAM wParam,LPARAM DDEACK ack; ZeroMemory(&ack,sizeof(ack)); if(UnpackDDElParam(msg,lParam,NULL,(PUINT_PTR)&hCommand)) { - #if defined(_UNICODE) + /* ANSI execute command can't happen for shell */ if(IsWindowUnicode((HWND)wParam)) { - #endif + pszCommand = (TCHAR*)GlobalLock(hCommand); if(pszCommand!=NULL) { TCHAR *pszAction,*pszArg; @@ -129,9 +129,9 @@ static LRESULT CALLBACK DdeMessageWindow(HWND hwnd,UINT msg,WPARAM wParam,LPARAM } GlobalUnlock(hCommand); } - #if defined(_UNICODE) + } - #endif + lParam=ReuseDDElParam(lParam,msg,WM_DDE_ACK,*(PUINT)&ack,(UINT)hCommand); if (!PostMessage((HWND)wParam,WM_DDE_ACK,(WPARAM)hwnd,lParam)) { GlobalFree(hCommand); -- cgit v1.2.3