summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSzymon Tokarz <wsx22@o2.pl>2013-12-14 00:44:32 +0000
committerSzymon Tokarz <wsx22@o2.pl>2013-12-14 00:44:32 +0000
commit65273008e471e940f46226b505846ddce6d89b13 (patch)
treedc5d33838c110a18de2b4548b51b6e5b117a3184 /plugins
parenta25ad83d5e47dc651435d1c8bcd8a05479659707 (diff)
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
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AssocMgr/src/dde.cpp5
1 files changed, 2 insertions, 3 deletions
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);
}