diff options
Diffstat (limited to 'src/core/miranda.cpp')
-rw-r--r-- | src/core/miranda.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/miranda.cpp b/src/core/miranda.cpp index 9f0da67b09..66a3ca8e80 100644 --- a/src/core/miranda.cpp +++ b/src/core/miranda.cpp @@ -85,6 +85,7 @@ static char *pszWaitServices[MAXIMUM_WAIT_OBJECTS-1]; static int waitObjectCount = 0;
HANDLE hMirandaShutdown;
HINSTANCE hInst;
+DWORD hMainThreadId;
int hLangpack = 0;
bool bModulesLoadedFired = false;
@@ -210,6 +211,7 @@ void CheckRestart() int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR cmdLine, int)
{
hInst = hInstance;
+ hMainThreadId = GetCurrentThreadId();
CmdLine_Parse(cmdLine);
setlocale(LC_ALL, "");
|