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:
commit
908f993698
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user