Skip to content
Snippets Groups Projects
Commit 08ce315f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Suppress "VDD Open failed" warning if child process terminated

Another log message reported by  DesotoFireflite (VALHALLA) that can happen when a user has typed something while the programming is running and the program terminates before the data can be sent to it.
parent acd808d3
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2640 passed
......@@ -691,9 +691,10 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
bp=buf;
len=0;
if(wrslot==INVALID_HANDLE_VALUE)
lprintf(LOG_WARNING,"VDD Open failed (not loaded yet?)");
else if(!WriteFile(wrslot,bp,wr,&len,NULL)) {
if(wrslot==INVALID_HANDLE_VALUE) {
if(WaitForSingleObject(process_info.hProcess, 0) != WAIT_OBJECT_0) // Process still running?
lprintf(LOG_WARNING,"VDD Open failed (not loaded yet?)");
} else if(!WriteFile(wrslot,bp,wr,&len,NULL)) {
if(WaitForSingleObject(process_info.hProcess, 0) != WAIT_OBJECT_0) { // Process still running?
lprintf(LOG_ERR,"!VDD WriteFile(0x%x, %u) FAILURE (Error=%u)", wrslot, wr, GetLastError());
if(GetMailslotInfo(wrslot,&wr,NULL,NULL,NULL))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment