diff options
author | crupest <crupest@outlook.com> | 2019-03-27 00:18:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-27 00:18:57 +0800 |
commit | 8b1ec7c3f38eb8140f88a472184199b360e21c13 (patch) | |
tree | ceac922a5e310e04c8d5897ad69176fd43671fd8 /src/main.cpp | |
parent | b506c349b793f723df6da170ffa0f412200e26e9 (diff) | |
download | cru-8b1ec7c3f38eb8140f88a472184199b360e21c13.tar.gz cru-8b1ec7c3f38eb8140f88a472184199b360e21c13.tar.bz2 cru-8b1ec7c3f38eb8140f88a472184199b360e21c13.zip |
...
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index c35213f7..a787fbca 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,13 +16,12 @@ using cru::ui::controls::Button; using cru::ui::controls::FlexLayout; using cru::ui::controls::TextBlock; -int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - LPWSTR lpCmdLine, int nCmdShow) { +int main() { #ifdef CRU_DEBUG _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif - Application application(hInstance); + Application application(::GetModuleHandleW(nullptr)); const auto window = Window::CreateOverlapped(); |