From 84f3b8a81a09090891270179b39a8e178f29d495 Mon Sep 17 00:00:00 2001 From: Alexandr Akulich Date: Thu, 26 Nov 2015 14:13:16 +0600 Subject: [PATCH] xrCore: Do not lowercase params anymore. Params can contain paths, which are case-sensitive in Linux (and become invalid after lowercasing). This commit can break application arguments, thus "-EdiTOr" would not be considered as "-editor" option anymore, but it's OK, because there is a number of case-sensitive arguments, which is processed via GetCommandLine() with case-sensitive matching. --- src/xrCore/xrCore.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/xrCore/xrCore.cpp b/src/xrCore/xrCore.cpp index 4adf5b2966e..d58ec368092 100644 --- a/src/xrCore/xrCore.cpp +++ b/src/xrCore/xrCore.cpp @@ -39,7 +39,6 @@ void xrCore::_initialize(LPCSTR _ApplicationName, LogCallback cb, BOOL init_fs, // Init COM so we can use CoCreateInstance // HRESULT co_res = Params = xr_strdup(GetCommandLine()); - xr_strlwr(Params); if (!strstr(Params, "-editor")) CoInitializeEx(NULL, COINIT_MULTITHREADED);