editor: prevent warning on MSVC

This commit is contained in:
Erik Faye-Lund 2013-01-02 20:43:15 +01:00
parent 3338175675
commit d5b05fc778

View File

@ -674,9 +674,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/,
if (NULL == hwnd)
die("Window Creation Failed!");
LPWSTR *argv;
int argc;
if ((argv = CommandLineToArgvW(GetCommandLineW(), &argc)) && argc > 1) {
LPWSTR *argv = argv = CommandLineToArgvW(GetCommandLineW(), &argc);
if (argv && argc > 1) {
if (argc > 2) {
char prog[MAX_PATH];
GetModuleFileNameA(NULL, prog, sizeof(prog));