From 6ba4d142ab43cbfe23bc7c94e901bd3a6d5aed6d Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 31 Dec 2003 01:03:08 +0000 Subject: [PATCH] better command line handling for MinGW svn path=/trunk/; revision=7359 --- reactos/subsys/system/explorer/doxy-footer.html | 2 +- reactos/subsys/system/explorer/explorer.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/system/explorer/doxy-footer.html b/reactos/subsys/system/explorer/doxy-footer.html index 17ff02a4f85..447482dcb3e 100644 --- a/reactos/subsys/system/explorer/doxy-footer.html +++ b/reactos/subsys/system/explorer/doxy-footer.html @@ -3,7 +3,7 @@
ROS Explorer Source Code Documentation -
generated on 27.12.2003 by +
generated on 31.12.2003 by
doxygen
diff --git a/reactos/subsys/system/explorer/explorer.cpp b/reactos/subsys/system/explorer/explorer.cpp index 3c818c46435..c81b3190726 100644 --- a/reactos/subsys/system/explorer/explorer.cpp +++ b/reactos/subsys/system/explorer/explorer.cpp @@ -290,7 +290,12 @@ int main(int argc, char* argv[]) if (startupinfo.dwFlags & STARTF_USESHOWWINDOW) nShowCmd = startupinfo.wShowWindow; - return wWinMain(GetModuleHandle(NULL), 0, GetCommandLine(), nShowCmd); + LPWSTR cmdline = GetCommandLineW(); + + while(*cmdline && !_istspace(*cmdline)) + ++cmdline; + + return wWinMain(GetModuleHandle(NULL), 0, cmdline, nShowCmd); } #endif // __MINGW && UNICODE