diff options
author | George Hazan <george.hazan@gmail.com> | 2013-01-05 13:34:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-01-05 13:34:01 +0000 |
commit | 8860a0297c57d8c5fe3e6ddaef64ee6780ea116b (patch) | |
tree | 9ac6d2b9d8a75d924a4afa19b1c29f09a1091942 /protocols/MRA/src | |
parent | 4b7bbbcee708dd675db72a8ada1fca9b1972d8a6 (diff) |
fix for MRA broadcasts
git-svn-id: http://svn.miranda-ng.org/main/trunk@2978 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r-- | protocols/MRA/src/Mra_functions.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index 37e8e60f0c..f9a569b3d6 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -1094,9 +1094,11 @@ DWORD CMraProto::ProtoBroadcastAckAsync(HANDLE hContact, int type, int hResult, ack->cbSize = sizeof(ACKDATA);
ack->szModule = m_szModuleName; ack->hContact = hContact;
ack->type = type; ack->result = hResult;
- ack->hProcess = hProcess; ack->lParam = lParam;
- if (paramSize)
- memcpy(ack+1, (void*)lParam, paramSize);
+ ack->hProcess = hProcess;
+ if (paramSize) {
+ ack->lParam = (LPARAM)(ack+1);
+ memcpy((void*)ack->lParam, (void*)lParam, paramSize);
+ }
mir_forkthread(FakeThread, ack);
return 0;
}
|