ApsInitialize: CreateDirectory result is not checked properly
gl-bars opened this issue · 1 comments
gl-bars commented
Status = CreateDirectory(ApsLogPath, NULL);
if (Status != APS_STATUS_OK && Status != ERROR_ALREADY_EXISTS) {
return Status;
}
CreateDirectory returns just BOOL, while ERROR_ALREADY_EXISTS is returned by GetLastError. When log
or sym
directory did not exist (but was just created), the program thinks there was an error and terminates silently.