mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator
synced 2025-05-23 21:57:40 +08:00
Silence some compiler warnings in base.cpp.
This commit is contained in:
parent
17d4701e88
commit
08ceeb2419
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user