diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 15:09:08 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 15:09:08 +0000 |
commit | aa1881bc71188433b53b28849bdc1a01324483be (patch) | |
tree | a29a1e70826b6a51a4eb57e9750dece50768bef3 /plugins/SplashScreen | |
parent | 355eb8b33e62e44506db3a1a06221d660b633fad (diff) |
minus CreateThread
git-svn-id: http://svn.miranda-ng.org/main/trunk@13541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SplashScreen')
-rw-r--r-- | plugins/SplashScreen/src/splash.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/SplashScreen/src/splash.cpp b/plugins/SplashScreen/src/splash.cpp index 8fbde3bb40..8a75544b5f 100644 --- a/plugins/SplashScreen/src/splash.cpp +++ b/plugins/SplashScreen/src/splash.cpp @@ -140,7 +140,7 @@ LRESULT CALLBACK SplashWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM return DefWindowProc(hwnd, message, wParam, lParam);
}
-int SplashThread(void *arg)
+void __cdecl SplashThread(void *arg)
{
IGraphBuilder *pGraph = NULL;
IMediaControl *pControl = NULL;
@@ -329,8 +329,6 @@ int SplashThread(void *arg) pGraph->Release();
CoUninitialize();
}
-
- ExitThread(0);
}
BOOL ShowSplash(BOOL bpreview)
@@ -349,8 +347,6 @@ BOOL ShowSplash(BOOL bpreview) if (!SplashBmp->loadFromFile(szSplashFile, NULL))
return 0;
- DWORD threadID;
-
#ifdef _DEBUG
logMessage(_T("Thread"), _T("start"));
#endif
@@ -375,7 +371,7 @@ BOOL ShowSplash(BOOL bpreview) #endif
}
- hSplashThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SplashThread, (LPVOID)timeout, 0, &threadID);
+ hSplashThread = mir_forkthread(SplashThread, (void*)timeout);
#ifdef _DEBUG
logMessage(_T("Thread"), _T("end"));
|