tMore Win32 getopt() fixes - vaccinewars - be a doctor and try to vaccinate the… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 60ebeceeba559ddb6cc20027b20e54085cbc75a4 | |
parent 54e0390472cf0c704bb333f5d4ad71a0b2d692ff | |
Author: Ben Webb <[email protected]> | |
Date: Thu, 12 Apr 2001 12:30:33 +0000 | |
More Win32 getopt() fixes | |
Diffstat: | |
M src/dopeos.c | 2 +- | |
M src/winmain.c | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/dopeos.c b/src/dopeos.c | |
t@@ -30,7 +30,7 @@ | |
#include <conio.h> | |
#ifdef GUI_CLIENT | |
-#include "gtk.h" | |
+#include "gtkport.h" | |
#endif | |
CHAR_INFO RealScreen[25][80],VirtualScreen[25][80]; | |
diff --git a/src/winmain.c b/src/winmain.c | |
t@@ -67,7 +67,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInst… | |
SetupParameters(); | |
split=g_strsplit(lpszCmdParam," ",0); | |
argc=0; | |
- while (split[argc]) argc++; | |
+ while (split[argc] && split[argc][0]) argc++; | |
HandleCmdLine(argc,split); | |
g_strfreev(split); | |
if (WantVersion || WantHelp) { |