Created
April 8, 2016 08:30
-
-
Save stevage/b0bdade278fa066d4082369f95d47670 to your computer and use it in GitHub Desktop.
ECW SDK patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Source/C/NCSUtil/NCSPrefsXML.cpp.ori 2016-04-08 08:28:13.365541000 +0000 | |
+++ Source/C/NCSUtil/NCSPrefsXML.cpp 2016-04-08 08:28:58.665541000 +0000 | |
@@ -32,7 +32,11 @@ | |
} else { | |
char *pHomeDir = getenv("HOME"); | |
if( pHomeDir ) { | |
+#ifdef NCS_BUILD_UNICODE | |
+ sUserPrefsFile.Format( NCS_T("%s%ls"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") ); | |
+#else | |
sUserPrefsFile.Format( NCS_T("%s%s"), pHomeDir, NCS_T("/.erm/ncsuserprefs.xml") ); | |
+#endif | |
} else { | |
sUserPrefsFile = NCS_T("/etc/erm/ncsuserprefs.xml"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment