1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

Land #636, Fix debug logging for Windows 7

This commit is contained in:
dwelch-r7 2023-04-19 17:02:34 +01:00 committed by GitHub
commit 908f993698
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ void log_to_file(char* buffer) {
if (hFile) {
WaitForSingleObject(lock, INFINITE);
LPDWORD bytesWritten = 0;
WriteFile(hFile, buffer, (DWORD)strlen(buffer), bytesWritten, NULL);
DWORD bytesWritten = 0;
WriteFile(hFile, buffer, (DWORD)strlen(buffer), &bytesWritten, NULL);
ReleaseMutex(lock);
}
}