mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-04-18 02:45:15 +02:00
Silence some compiler warnings in base.cpp.
This commit is contained in:
parent
17d4701e88
commit
08ceeb2419
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue