mirror of
https://github.com/reactos/reactos.git
synced 2025-06-24 14:40:49 +00:00
[RAPPS] Move CMainWindow creation to upper function
This commit is contained in:
parent
85ca8afb60
commit
d6fecc52d1
4 changed files with 8 additions and 13 deletions
|
@ -6,7 +6,7 @@
|
|||
* Copyright 2020 He Yang (1160386205@qq.com)
|
||||
*/
|
||||
|
||||
#include "rapps.h"
|
||||
#include "gui.h"
|
||||
#include "unattended.h"
|
||||
#include <setupapi.h>
|
||||
#include <conutils.h>
|
||||
|
@ -256,7 +256,8 @@ ParseCmdAndExecute(LPWSTR lpCmdLine, BOOL bIsFirstLaunch, int nCmdShow)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
MainWindowLoop(&db, nCmdShow);
|
||||
CMainWindow wnd(&db);
|
||||
MainWindowLoop(&wnd, nCmdShow);
|
||||
|
||||
if (hMutex)
|
||||
CloseHandle(hMutex);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue