mirror of
https://github.com/janbodnar/Windows-API-examples.git
synced 2024-11-24 11:25:30 +00:00
Update tmain_ex.c
This commit is contained in:
parent
29e33df3ee
commit
cebfb2513d
@ -14,7 +14,12 @@ int _tmain(int argc, TCHAR *argv[]) {
|
||||
GetLastError());
|
||||
}
|
||||
|
||||
WriteConsole(std, argv[1], _tcslen(argv[1]), cChars, NULL);
|
||||
if (argv[1]) {
|
||||
|
||||
WriteConsole(std, argv[1], _tcslen(argv[1]), cChars, NULL);
|
||||
}
|
||||
|
||||
CloseHandle(std);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user