editor: prevent warning on MSVC
This commit is contained in:
parent
3338175675
commit
d5b05fc778
@ -674,9 +674,9 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/,
|
|||||||
if (NULL == hwnd)
|
if (NULL == hwnd)
|
||||||
die("Window Creation Failed!");
|
die("Window Creation Failed!");
|
||||||
|
|
||||||
LPWSTR *argv;
|
|
||||||
int argc;
|
int argc;
|
||||||
if ((argv = CommandLineToArgvW(GetCommandLineW(), &argc)) && argc > 1) {
|
LPWSTR *argv = argv = CommandLineToArgvW(GetCommandLineW(), &argc);
|
||||||
|
if (argv && argc > 1) {
|
||||||
if (argc > 2) {
|
if (argc > 2) {
|
||||||
char prog[MAX_PATH];
|
char prog[MAX_PATH];
|
||||||
GetModuleFileNameA(NULL, prog, sizeof(prog));
|
GetModuleFileNameA(NULL, prog, sizeof(prog));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user