mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-26 23:51:58 +00:00
fix very very insidious bug with mapping physical memory (TLB corruption). fix weirdness reported by michael (underlying cause: using cpu_ClockFrequency instead of wcpu_*; that made the timer run at freq=0)
mahaf: now disabled on Win2k because we can't prevent the TLB bug there. removed the CopyPhysical API. wutil: allow querying windows version via number View: fix warning This was SVN commit r5169.
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
#include "lib/posix/posix_pthread.h"
|
||||
#include "lib/sysdep/cpu.h" // CAS
|
||||
#include "lib/sysdep/sysdep.h"
|
||||
#include "lib/res/file/file.h" // FILE_ACCESS
|
||||
// some functions here are called from within mmgr; disable its hooks
|
||||
// so that our allocations don't cause infinite recursion.
|
||||
#ifdef REDEFINED_NEW
|
||||
@@ -237,7 +236,7 @@ LibError debug_write_crashlog(const wchar_t* text)
|
||||
if(!f)
|
||||
{
|
||||
in_progress = 0;
|
||||
WARN_RETURN(ERR::FILE_ACCESS);
|
||||
WARN_RETURN(ERR::FAIL);
|
||||
}
|
||||
|
||||
fputwc(0xfeff, f); // BOM
|
||||
|
||||
Reference in New Issue
Block a user