Skip to content

Commit 338d008

Browse files
committed
unicode stormlib causing problems
1 parent 247b1c1 commit 338d008

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

extern/StormLib/src/SBaseCommon.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ void StringCreatePseudoFileName(char * szBuffer, size_t cchMaxChars, unsigned in
151151
// Utility functions (UNICODE) only exist in the ANSI version of the library
152152
// In ANSI builds, TCHAR = char, so we don't need these functions implemented
153153

154-
#ifdef _UNICODE
154+
#if 0
155155
void StringCopy(TCHAR * szTarget, size_t cchTarget, const char * szSource)
156156
{
157157
if(cchTarget > 0)

extern/StormLib/src/StormCommon.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ char * StringCopy(char * szTarget, size_t cchTarget, const char * szSource);
193193
void StringCat(char * szTarget, size_t cchTargetMax, const char * szSource);
194194
void StringCreatePseudoFileName(char * szBuffer, size_t cchMaxChars, unsigned int nIndex, const char * szExtension);
195195

196-
#ifdef _UNICODE
196+
#if 0
197197
void StringCopy(TCHAR * szTarget, size_t cchTarget, const char * szSource);
198198
void StringCopy(char * szTarget, size_t cchTarget, const TCHAR * szSource);
199199
void StringCopy(TCHAR * szTarget, size_t cchTarget, const TCHAR * szSource);

extern/StormLib/src/StormLib.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ extern "C" {
108108
#if defined(_MSC_VER) && !defined(STORMLIB_NO_AUTO_LINK)
109109
#ifndef WDK_BUILD
110110
#ifdef _DEBUG // DEBUG VERSIONS
111-
#ifndef _UNICODE
111+
#if 1
112112
#ifdef _DLL
113113
#pragma comment(lib, "StormLibDAD.lib") // Debug Ansi CRT-DLL version
114114
#else
@@ -122,7 +122,7 @@ extern "C" {
122122
#endif
123123
#endif
124124
#else // RELEASE VERSIONS
125-
#ifndef _UNICODE
125+
#if 1
126126
#ifdef _DLL
127127
#pragma comment(lib, "StormLibRAD.lib") // Release Ansi CRT-DLL version
128128
#else

extern/StormLib/test/StormTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ static void CreateFullPathName(TCHAR * szBuffer, size_t cchBuffer, LPCTSTR szSub
603603
}
604604
}
605605

606-
#ifdef _UNICODE
606+
#if 0
607607
static void CreateFullPathName(char * szBuffer, size_t cchBuffer, LPCTSTR szSubDir, LPCTSTR szNamePart1, LPCTSTR szNamePart2 = NULL)
608608
{
609609
TCHAR szFullPathT[MAX_PATH];
@@ -1791,7 +1791,7 @@ static DWORD CreateNewArchive_V2(TLogHelper * pLogger, LPCTSTR szPlainName, DWOR
17911791
// Creates new archive with UNICODE name. Adds prefix to the name
17921792
static DWORD CreateNewArchiveU(TLogHelper * pLogger, const wchar_t * szPlainName, DWORD dwCreateFlags, DWORD dwMaxFileCount)
17931793
{
1794-
#ifdef _UNICODE
1794+
#if 0
17951795
HANDLE hMpq = NULL;
17961796
TCHAR szMpqName[MAX_PATH+1];
17971797
TCHAR szFullPath[MAX_PATH];

extern/StormLib/test/TLogHelper.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TLogHelper
1919
TLogHelper(const char * szNewMainTitle = NULL, const TCHAR * szNewSubTitle1 = NULL, const TCHAR * szNewSubTitle2 = NULL);
2020
~TLogHelper();
2121

22-
#if defined(UNICODE) || defined(UNICODE)
22+
#if 0
2323
// TCHAR-based functions. They are only needed on UNICODE builds.
2424
// On ANSI builds is TCHAR = char, so we don't need them at all
2525
int PrintWithClreol(const TCHAR * szFormat, va_list argList, bool bPrintPrefix, bool bPrintLastError, bool bPrintEndOfLine);
@@ -46,7 +46,7 @@ class TLogHelper
4646

4747
protected:
4848

49-
#if defined(UNICODE) || defined(UNICODE)
49+
#if 0
5050
TCHAR * CopyFormatCharacter(TCHAR * szBuffer, const TCHAR *& szFormat);
5151
#endif
5252
char * CopyFormatCharacter(char * szBuffer, const char *& szFormat);
@@ -129,7 +129,7 @@ TLogHelper::~TLogHelper()
129129
// TCHAR-based functions. They are only needed on UNICODE builds.
130130
// On ANSI builds is TCHAR = char, so we don't need them at all
131131

132-
#if defined(UNICODE) || defined(UNICODE)
132+
#if 0
133133
int TLogHelper::PrintWithClreol(const TCHAR * szFormat, va_list argList, bool bPrintPrefix, bool bPrintLastError, bool bPrintEndOfLine)
134134
{
135135
TCHAR szFormatBuff[0x200];
@@ -383,7 +383,7 @@ DWORD TLogHelper::PrintVerdict(DWORD dwErrCode)
383383
//-----------------------------------------------------------------------------
384384
// Protected functions
385385

386-
#ifdef _UNICODE
386+
#if 0
387387
TCHAR * TLogHelper::CopyFormatCharacter(TCHAR * szBuffer, const TCHAR *& szFormat)
388388
{
389389
// static LPCTSTR szStringFormat = _T("\"%s\"");

0 commit comments

Comments
 (0)