mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2026-08-07 18:34:45 -04:00
Update win_console.c
This commit is contained in:
parent
a769bcc6fc
commit
29e33df3ee
@ -11,7 +11,12 @@ int wmain(int argc, wchar_t **argv) {
|
|||||||
GetLastError());
|
GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
WriteConsoleW(std, argv[1], wcslen(argv[1]), cChars, NULL);
|
if (argv[1]) {
|
||||||
|
|
||||||
|
WriteConsoleW(std, argv[1], wcslen(argv[1]), cChars, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
CloseHandle(std);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user