X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmain.cpp;h=5cf18c3a81222412d8bf61ae8ed724e7b2ff4062;hp=4b187c3ed244b35491658ee66ee14aeb08419cc0;hb=516755dde30a4820495580d1b52a5b992f800461;hpb=e1ea831a640fba534e7e42e399f04cdf681ef8d3 diff --git a/source/core/main.cpp b/source/core/main.cpp index 4b187c3..5cf18c3 100644 --- a/source/core/main.cpp +++ b/source/core/main.cpp @@ -1,5 +1,6 @@ -/* -This file is part of libmspframework +/* $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