File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ BYTE * ClrVirtualAllocWithinRange(const BYTE *pMinAddr,
369369 {
370370 NOTHROW;
371371 PRECONDITION (dwSize != 0 );
372- PRECONDITION (flAllocationType == MEM_RESERVE);
372+ PRECONDITION (flAllocationType == MEM_RESERVE); // ORed with MEM_RESERVE_EXECUTABLE on Unix
373373 }
374374 CONTRACTL_END;
375375
@@ -449,7 +449,7 @@ BYTE * ClrVirtualAllocWithinRange(const BYTE *pMinAddr,
449449 (mbInfo.RegionSize >= (SIZE_T) dwSize || mbInfo.RegionSize == 0 ))
450450 {
451451 // Try reserving the memory using VirtualAlloc now
452- pResult = (BYTE*)ClrVirtualAlloc (tryAddr, dwSize, MEM_RESERVE , flProtect);
452+ pResult = (BYTE*)ClrVirtualAlloc (tryAddr, dwSize, flAllocationType , flProtect);
453453
454454 // Normally this will be successful
455455 //
You can’t perform that action at this time.
0 commit comments