X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmain.cpp;h=5cf18c3a81222412d8bf61ae8ed724e7b2ff4062;hb=20e1beb546c26eae3b1a61ab2051108a7dca221f;hp=de62f75821bf11e0735b6a2d7f2264703d888782;hpb=fe77fc6b869a71bf94d501a0762579f4ddbc5094;p=libs%2Fcore.git diff --git a/source/core/main.cpp b/source/core/main.cpp index de62f75..5cf18c3 100644 --- a/source/core/main.cpp +++ b/source/core/main.cpp @@ -1,4 +1,5 @@ -/* +/* $Id$ + This file is part of libmspcore Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL @@ -10,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); + LPWSTR *argv=CommandLineToArgvW(GetCommandLineW(), &argc); + return Msp::Application::run(argc, (char **)argv, hInstance); } #endif