]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/main.cpp
Refactor Thread class with pimpl to avoid exposing platform-specific parts
[libs/core.git] / source / core / main.cpp
index 9fdaba297c7ed8ef7c74b5e22e5d1c9eb289669c..f73ef813c72e77c45baf480b2f08c6fcf7373371 100644 (file)
@@ -4,6 +4,7 @@ This file is part of libmspcore
 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
+
 #ifdef WIN32
 #include <windows.h>
 #endif
@@ -11,11 +12,11 @@ Distributed under the LGPL
 #include "application.h"
 
 #ifdef WIN32
-int APIENTRY WinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
+int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
 { 
        int argc        = 0;
-       LPWSTR *argv=CommandLineToArgvW(GetCommandLineW(), &argc);
-       return Msp::Application::run(argc, (char **)argv);
+       LPWSTR *argv = CommandLineToArgvW(GetCommandLineW(), &argc);
+       return Msp::Application::run(argc, (char **)argv, hInstance);
 }
 #endif