From 68389c6196559103489e80b5d155fb771d78c9c1 Mon Sep 17 00:00:00 2001 From: Ilya Orlov Date: Fri, 25 May 2018 15:54:08 +0300 Subject: [PATCH] xrCore: fix wrong defines placement --- src/xrCore/xrDebug.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xrCore/xrDebug.cpp b/src/xrCore/xrDebug.cpp index 5750b7a68e6..9f880fe84bc 100644 --- a/src/xrCore/xrDebug.cpp +++ b/src/xrCore/xrDebug.cpp @@ -389,8 +389,8 @@ void xrDebug::Fail(bool& ignoreAlways, const ErrorLocation& loc, const char* exp if (OnDialog) OnDialog(true); FlushLog(); - if (Core.PluginMode) #if defined(WINDOWS) + if (Core.PluginMode) MessageBox(NULL, assertionInfo, "X-Ray error", MB_OK | MB_ICONERROR | MB_SYSTEMMODAL); else { @@ -420,9 +420,10 @@ void xrDebug::Fail(bool& ignoreAlways, const ErrorLocation& loc, const char* exp DEBUG_BREAK; #endif } +#endif if (OnDialog) OnDialog(false); -#endif + lock.Leave(); }