]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/main.cpp
Store hInstance in Application class on win32
[libs/core.git] / source / core / main.cpp
index 9fdaba297c7ed8ef7c74b5e22e5d1c9eb289669c..5cf18c3a81222412d8bf61ae8ed724e7b2ff4062 100644 (file)
@@ -11,11 +11,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);
+       return Msp::Application::run(argc, (char **)argv, hInstance);
 }
 #endif