From aa1881bc71188433b53b28849bdc1a01324483be Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 11 May 2015 15:09:08 +0000 Subject: minus CreateThread git-svn-id: http://svn.miranda-ng.org/main/trunk@13541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SplashScreen/src/splash.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/SplashScreen/src') 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")); -- cgit v1.2.3