diff options
Diffstat (limited to 'protocols/JabberG')
-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);
}
|