From 65273008e471e940f46226b505846ddce6d89b13 Mon Sep 17 00:00:00 2001 From: Szymon Tokarz Date: Sat, 14 Dec 2013 00:44:32 +0000 Subject: File association manager - CallFunctionAsync() at NG always returns 0, so do not mir_free() async function param always after call it. (It's confusing beacouse PostMessage() from QueueMainThread() at src\mir_core\modules.cpp returns 0 on error (msdn)) git-svn-id: http://svn.miranda-ng.org/main/trunk@7201 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AssocMgr/src/dde.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/AssocMgr/src/dde.cpp') diff --git a/plugins/AssocMgr/src/dde.cpp b/plugins/AssocMgr/src/dde.cpp index c2031280f6..c187630910 100644 --- a/plugins/AssocMgr/src/dde.cpp +++ b/plugins/AssocMgr/src/dde.cpp @@ -122,10 +122,9 @@ static LRESULT CALLBACK DdeMessageWindow(HWND hwnd,UINT msg,WPARAM wParam,LPARAM /* we are inside miranda here, we make it async so the shell does * not timeout regardless what the plugins try to do. */ if (!lstrcmpi(pszAction,_T("file"))) - ack.fAck=(short)(CallFunctionAsync(FileActionAsync,pszArg)!=0); + CallFunctionAsync(FileActionAsync,pszArg); else if (!lstrcmpi(pszAction,_T("url"))) - ack.fAck=(short)(CallFunctionAsync(UrlActionAsync,pszArg)!=0); - if (!ack.fAck) mir_free(pszArg); /* otherwise freed by asyncproc */ + CallFunctionAsync(UrlActionAsync,pszArg); } GlobalUnlock(hCommand); } -- cgit v1.2.3