From a61e678a12231d8a3852fa5f55701aa74aa3b15c Mon Sep 17 00:00:00 2001 From: arcum42 Date: Thu, 28 Oct 2010 10:49:45 +0000 Subject: [PATCH] newHostVM: Fix linux/gcc crash on startup. git-svn-id: http://pcsx2.googlecode.com/svn/branches/newHostVM@3978 96395faa-99c1-11dd-bbfe-3dabce05a288 --- common/src/Utilities/Linux/LnxHostSys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/Utilities/Linux/LnxHostSys.cpp b/common/src/Utilities/Linux/LnxHostSys.cpp index 16c5a22161..8a7b451531 100644 --- a/common/src/Utilities/Linux/LnxHostSys.cpp +++ b/common/src/Utilities/Linux/LnxHostSys.cpp @@ -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) {