mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-24 11:25:30 +00: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());
|
||||
}
|
||||
|
||||
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