Test MMPP multiple initialization

This commit is contained in:
Boring
2022-10-01 21:07:53 +08:00
parent 53885cd5e7
commit 1af4e81913
6 changed files with 69 additions and 93 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ PMMP_GLOBAL_DATA MmpGlobalDataPtr;
BOOLEAN MmpBuildSectionName(_Out_ PUNICODE_STRING SectionName) {
WCHAR buffer[128];
wsprintfW(buffer, L"\\Sessions\\%d\\BaseNamedObjects\\MMPP%d", NtCurrentPeb()->SessionId, (unsigned int)NtCurrentProcessId());
swprintf(buffer, L"\\Sessions\\%d\\BaseNamedObjects\\MMPP*%08X", NtCurrentPeb()->SessionId, (unsigned int)NtCurrentProcessId());
return RtlCreateUnicodeString(SectionName, buffer);
}