]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/main.cpp
maputils.h: add insert_unique function
[libs/core.git] / source / core / main.cpp
index 4b187c3ed244b35491658ee66ee14aeb08419cc0..19791eefddf697c148901094d6e62398ea46a833 100644 (file)
@@ -1,20 +1,14 @@
-/*
-This file is part of libmspframework
-Copyright © 2006 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
 #ifdef WIN32
 #include <windows.h>
 #endif
-
 #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