This line of code isn't generating any errors:
sprintf(szErrFmtStr, "Failed to connect to %s");
shouldn't this generate C4473 - not enough arguments passed for format string
Or am I missing something? The code compiles without warnings, but gives an access violation when executed. It doesn't look like the warning is disabled.
I'm compiling with VS2019, warning level set to 4.