diff options
Diffstat (limited to 'crawl-ref/source/libwt.cc')
-rw-r--r-- | crawl-ref/source/libwt.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crawl-ref/source/libwt.cc b/crawl-ref/source/libwt.cc index eb48c63a12..82e561a8f4 100644 --- a/crawl-ref/source/libwt.cc +++ b/crawl-ref/source/libwt.cc @@ -202,11 +202,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, }
// I'll be damned if I have to parse lpCmdLine myself...
- int argc;
+ int argc = 0;
LPWSTR *wargv = CommandLineToArgvW(GetCommandLineW(), &argc);
- // Windows 98 fix.
- if (!wargv)
- argc = 0;
char **argv = new char*[argc];
int args_len = wcslen(GetCommandLineW()) + argc;
char *args = new char[args_len];
|