1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-18 15:14:10 +01:00

Land , Remove logging artifacts that made their way into the release build

This commit is contained in:
adfoster-r7 2022-05-11 16:02:08 +01:00 committed by GitHub
commit 44c5ea4887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,4 @@
#ifdef DEBUGTRACE
#include "../common/common.h"
HANDLE lock = NULL;
@ -8,7 +9,7 @@ HANDLE init_logging(wchar_t* filePath) {
GENERIC_WRITE, // open for writing
FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE, // do share (7)
NULL, // default security
CREATE_ALWAYS, // create new file always
OPEN_ALWAYS, // create new file or open existing file
FILE_ATTRIBUTE_NORMAL, // normal file
NULL); // no attr. template
lock = CreateMutex(NULL, FALSE, NULL);
@ -41,3 +42,4 @@ void set_logging_context(HANDLE ctx, HANDLE lock1) {
hFile = ctx;
lock = lock1;
}
#endif