diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-14 19:40:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-14 19:40:31 +0000 |
commit | dab02845fea8031dd3d7864dc1efc211a434f969 (patch) | |
tree | 5106120c4f64fbf518f57a963f5c7aec6eb19363 /protocols/JabberG/jabber_form2.cpp | |
parent | 60df08c2f6194702ec180c2d2adf20d3675edae1 (diff) |
- code cleaning
- sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@975 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/jabber_form2.cpp')
-rw-r--r-- | protocols/JabberG/jabber_form2.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/protocols/JabberG/jabber_form2.cpp b/protocols/JabberG/jabber_form2.cpp index 5a97ab6827..f1936c9e73 100644 --- a/protocols/JabberG/jabber_form2.cpp +++ b/protocols/JabberG/jabber_form2.cpp @@ -1178,7 +1178,7 @@ private: CCtrlJabberForm m_frm;
};
-static VOID CALLBACK CreateDialogApcProc(DWORD param)
+static VOID CALLBACK CreateDialogApcProc(void* param)
{
XmlNode *node = (XmlNode *)param;
@@ -1194,12 +1194,5 @@ static VOID CALLBACK CreateDialogApcProc(DWORD param) void LaunchForm(XmlNode *node)
{
node = JabberXmlCopyNode(node);
-
- if (GetCurrentThreadId() != jabberMainThreadId)
- {
- QueueUserAPC(CreateDialogApcProc, hMainThread, (DWORD)node);
- } else
- {
- CreateDialogApcProc((DWORD)node);
- }
+ CallFunctionAsync(CreateDialogApcProc, node);
}
|