mirror of https://github.com/PCSX2/pcsx2.git
newHostVM: Fix linux/gcc crash on startup.
git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3978 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
283224290d
commit
a61e678a12
|
@ -99,7 +99,7 @@ void HostSys::MemProtect( void* baseaddr, size_t size, const PageProtectionMode&
|
|||
|
||||
int result = mprotect( baseaddr, size, lnxmode );
|
||||
|
||||
if (!result)
|
||||
if (result != 0)
|
||||
{
|
||||
switch(errno)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue