Silence some compiler warnings in base.cpp.

This commit is contained in:
redpolline 2025-02-12 05:22:30 -05:00
parent 17d4701e88
commit 08ceeb2419

View file

@ -25,13 +25,13 @@ BOOLEAN (NTAPI *real_RtlGenRandom)(PVOID,ULONG) = NULL;
static void static void
randombytes(char * const buf, const size_t size) randombytes(char * const buf, const size_t size)
{ {
PRINT_DEBUG("%s %p %zu.\n", "mine_RtlGenRandom() called.", buf, size); PRINT_DEBUG("%s %p %" PRI_ZU ".\n", "mine_RtlGenRandom() called.", buf, size);
if (hadvapi32 == NULL) { if (hadvapi32 == NULL) {
hadvapi32 = GetModuleHandleW(L"advapi32.dll"); hadvapi32 = GetModuleHandleW(L"advapi32.dll");
if (hadvapi32 == NULL) { if (hadvapi32 == NULL) {
PRINT_DEBUG("%s.\n", "GetModuleHandle() failed for advapi32.dll"); PRINT_DEBUG("%s.\n", "GetModuleHandle() failed for advapi32.dll");
} }
PRINT_DEBUG("advapi32.dll handle: 0x%x.\n", hadvapi32); PRINT_DEBUG("advapi32.dll handle: 0x%p.\n", hadvapi32);
} }
if (hadvapi32 != NULL && if (hadvapi32 != NULL &&
real_RtlGenRandom == NULL) { real_RtlGenRandom == NULL) {