diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-06 20:43:53 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-06-06 20:43:53 +0000 |
commit | 74aabf4bccef1ebe3eace60a9694f44e9a0499ec (patch) | |
tree | 2bdb722b706c0a688fb5141ef4197827e61f747c /plugins/AssocMgr/dde.cpp | |
parent | 83246d23d9e1c1feeaee267b9a1b68c4766e7114 (diff) |
that's all changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AssocMgr/dde.cpp')
-rw-r--r-- | plugins/AssocMgr/dde.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/AssocMgr/dde.cpp b/plugins/AssocMgr/dde.cpp index 0804be855c..5b95499c5d 100644 --- a/plugins/AssocMgr/dde.cpp +++ b/plugins/AssocMgr/dde.cpp @@ -30,8 +30,9 @@ static HANDLE hHookModulesLoaded,hHookPreShutdown; /************************* Open Handler ***************************/
// pszFilePath needs to be allocated using mir_alloc()
-static void __stdcall FileActionAsync(TCHAR *pszFilePath)
+static void __stdcall FileActionAsync(void *param)
{
+ TCHAR *pszFilePath = (TCHAR*)param;
/* invoke main handler */
switch(InvokeFileHandler(pszFilePath)) { /* pszFilePath is always a long path name */
case 0: /* success */ break;
@@ -45,8 +46,9 @@ static void __stdcall FileActionAsync(TCHAR *pszFilePath) }
// pszUrl needs to be allocated using mir_alloc()
-static void __stdcall UrlActionAsync(TCHAR *pszUrl)
+static void __stdcall UrlActionAsync(void *param)
{
+ TCHAR *pszUrl = (TCHAR*)param;
/* invoke main handler */
switch(InvokeUrlHandler(pszUrl)) {
case 0: /* success */ break;
@@ -111,7 +113,7 @@ static LRESULT CALLBACK DdeMessageWindow(HWND hwnd,UINT msg,WPARAM wParam,LPARAM /* ANSI execute command can't happen for shell */
if(IsWindowUnicode((HWND)wParam)) {
#endif
- pszCommand=GlobalLock(hCommand);
+ pszCommand = (TCHAR*)GlobalLock(hCommand);
if(pszCommand!=NULL) {
TCHAR *pszAction,*pszArg;
pszAction=GetExecuteParam(&pszCommand);
|