Commit 08ce315f authored by Rob Swindell's avatar Rob Swindell 💬
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
Pipeline #2640 passed with stage
in 9 minutes and 33 seconds
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment