Explorar o código

Removed Win10-only call

Brian Fiete %!s(int64=6) %!d(string=hai) anos
pai
achega
04702cfc57
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      IDEHelper/Linker/BlCvParser.cpp

+ 3 - 0
IDEHelper/Linker/BlCvParser.cpp

@@ -346,7 +346,10 @@ void BlCvParser::ParseSymbolData(void* symbolData, int size, void* relocData, in
 			dataBlock.mOutSize = -1;
 			dataBlock.mOutSize = -1;
 
 
 			WIN32_MEMORY_RANGE_ENTRY vAddrs = { dataBlock.mData, (SIZE_T)dataBlock.mSize };
 			WIN32_MEMORY_RANGE_ENTRY vAddrs = { dataBlock.mData, (SIZE_T)dataBlock.mSize };
+			//TODO: This was causing link errors on Win7
+#if 0
 			PrefetchVirtualMemory(GetCurrentProcess(), 1, &vAddrs, 0);
 			PrefetchVirtualMemory(GetCurrentProcess(), 1, &vAddrs, 0);
+#endif
 
 
 			data = sectionEnd;
 			data = sectionEnd;
 			while ((nextReloc < relocEnd) && ((int)nextReloc->mVirtualAddress < (int)(sectionEnd - (uint8*)symbolData)))
 			while ((nextReloc < relocEnd) && ((int)nextReloc->mVirtualAddress < (int)(sectionEnd - (uint8*)symbolData)))