_wmktemp_s reports a failure through its (positive) errno_t return value, so comparing it against zero from below never caught an error.
_wmktemp_s reports a failure through its (positive) errno_t return value, so comparing it against zero from below never caught an error.