fix warnings at high warning level in msvc

This commit is contained in:
daan 2019-10-17 16:56:57 -07:00
parent 5de851a84d
commit fdfa6ed260
6 changed files with 6 additions and 6 deletions

View file

@ -700,7 +700,7 @@ static bool mi_os_resetx(void* addr, size_t size, bool reset, mi_stats_t* stats)
void* p = VirtualAlloc(start, csize, MEM_RESET, PAGE_READWRITE);
mi_assert_internal(p == start);
#if 1
if (p == start) {
if (p == start && start != NULL) {
VirtualUnlock(start,csize); // VirtualUnlock after MEM_RESET removes the memory from the working set
}
#endif