mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Provide a safer version of convertUTF16toUTF8
This commit is contained in:
parent
a88339c219
commit
e3bbc42925
10 changed files with 31 additions and 25 deletions
|
|
@ -362,7 +362,7 @@ S32 WINAPI WinMain( HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, S32)
|
|||
{
|
||||
TCHAR buf[ moduleNameSize ];
|
||||
GetModuleFileNameW( NULL, buf, moduleNameSize );
|
||||
convertUTF16toUTF8( buf, moduleName, moduleNameSize );
|
||||
convertUTF16toUTF8( buf, moduleName );
|
||||
}
|
||||
#else
|
||||
GetModuleFileNameA(NULL, moduleName, moduleNameSize);
|
||||
|
|
@ -440,7 +440,7 @@ S32 torque_winmain( HINSTANCE hInstance, HINSTANCE, LPSTR lpszCmdLine, S32)
|
|||
{
|
||||
TCHAR buf[ moduleNameSize ];
|
||||
GetModuleFileNameW( NULL, buf, moduleNameSize );
|
||||
convertUTF16toUTF8( buf, moduleName, moduleNameSize );
|
||||
convertUTF16toUTF8( buf, moduleName );
|
||||
}
|
||||
#else
|
||||
GetModuleFileNameA(NULL, moduleName, moduleNameSize);
|
||||
|
|
@ -541,7 +541,7 @@ bool Platform::openWebBrowser( const char* webAddress )
|
|||
RegCloseKey( regKey );
|
||||
sHaveKey = true;
|
||||
|
||||
convertUTF16toUTF8(sWebKey,utf8WebKey,512);
|
||||
convertUTF16toUTF8(sWebKey,utf8WebKey);
|
||||
|
||||
#ifdef UNICODE
|
||||
char *p = dStrstr((const char *)utf8WebKey, "%1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue