зеркало из https://github.com/mozilla/pjs.git
Removing some debugging crud from new file
This commit is contained in:
Родитель
7f04e0c460
Коммит
2d806e8ea9
|
@ -94,11 +94,7 @@ NS_IMETHODIMP
|
||||||
nsSplashScreenWin::Show() {
|
nsSplashScreenWin::Show() {
|
||||||
// Spawn new thread to display splash screen.
|
// Spawn new thread to display splash screen.
|
||||||
DWORD threadID = 0;
|
DWORD threadID = 0;
|
||||||
#ifdef DEBUG_law
|
|
||||||
ThreadProc( this );
|
|
||||||
#else
|
|
||||||
CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)ThreadProc, this, 0, &threadID );
|
CreateThread( 0, 0, (LPTHREAD_START_ROUTINE)ThreadProc, this, 0, &threadID );
|
||||||
#endif
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,20 +134,11 @@ nsSplashScreenWin *nsSplashScreenWin::GetPointer( HWND dlg ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD WINAPI nsSplashScreenWin::ThreadProc( LPVOID splashScreen ) {
|
DWORD WINAPI nsSplashScreenWin::ThreadProc( LPVOID splashScreen ) {
|
||||||
#ifdef DEBUG_law
|
|
||||||
HWND dlg = CreateDialogParam( GetModuleHandle( 0 ),
|
|
||||||
MAKEINTRESOURCE( IDD_SPLASH ),
|
|
||||||
HWND_DESKTOP,
|
|
||||||
(DLGPROC)DialogProc,
|
|
||||||
(LPARAM)splashScreen );
|
|
||||||
ShowWindow( dlg, SW_SHOW );
|
|
||||||
#else
|
|
||||||
DialogBoxParam( GetModuleHandle( 0 ),
|
DialogBoxParam( GetModuleHandle( 0 ),
|
||||||
MAKEINTRESOURCE( IDD_SPLASH ),
|
MAKEINTRESOURCE( IDD_SPLASH ),
|
||||||
HWND_DESKTOP,
|
HWND_DESKTOP,
|
||||||
(DLGPROC)DialogProc,
|
(DLGPROC)DialogProc,
|
||||||
(LPARAM)splashScreen );
|
(LPARAM)splashScreen );
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче