better command line handling for MinGW

svn path=/trunk/; revision=7359
This commit is contained in:
Martin Fuchs 2003-12-31 01:03:08 +00:00
parent 56deb316c5
commit 6ba4d142ab
2 changed files with 7 additions and 2 deletions

View file

@ -3,7 +3,7 @@
<tr>
<td><address style="align: right;"><small>
ROS Explorer Source Code Documentation
<br>generated on 27.12.2003 by <a href="http://www.doxygen.org/index.html">
<br>generated on 31.12.2003 by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0>
</small></address>
</td>

View file

@ -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