mirror of
https://git.wownero.com/wownero/RandomWOW.git
synced 2024-12-22 07:48:54 +00:00
Merge pull request #247 from SChernykh/fix_warning
Fixed compiler warning
This commit is contained in:
commit
cced5cab2f
@ -206,8 +206,8 @@ void* allocLargePagesMemory(size_t bytes) {
|
||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||
if (setPrivilege("SeLockMemoryPrivilege", 1, &errfunc))
|
||||
return NULL;
|
||||
auto pageMinimum = GetLargePageMinimum();
|
||||
if (pageMinimum <= 0) {
|
||||
size_t pageMinimum = GetLargePageMinimum();
|
||||
if (!pageMinimum) {
|
||||
errfunc = "No large pages";
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user