mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 23:37:58 +03:00
Fix pointer comparisons
This commit is contained in:
parent
8bf258eb75
commit
098486fbe4
@ -1259,7 +1259,7 @@ void ClientModeShared::FireGameEvent( IGameEvent *event )
|
||||
}
|
||||
}
|
||||
|
||||
if ( team == 0 && GetLocalTeam() > 0 )
|
||||
if ( team == 0 && GetLocalTeam() )
|
||||
{
|
||||
bValidTeam = false;
|
||||
}
|
||||
|
@ -1420,7 +1420,7 @@ int V_UCS2ToUnicode( const ucs2 *pUCS2, wchar_t *pUnicode, int cubDestSizeInByte
|
||||
size_t nMaxUTF8 = cubDestSizeInBytes;
|
||||
char *pIn = (char *)pUCS2;
|
||||
char *pOut = (char *)pUnicode;
|
||||
if ( conv_t > 0 )
|
||||
if ( conv_t )
|
||||
{
|
||||
cchResult = 0;
|
||||
cchResult = iconv( conv_t, &pIn, &nLenUnicde, &pOut, &nMaxUTF8 );
|
||||
@ -1461,7 +1461,7 @@ int V_UnicodeToUCS2( const wchar_t *pUnicode, int cubSrcInBytes, char *pUCS2, in
|
||||
size_t nMaxUCS2 = cubDestSizeInBytes;
|
||||
char *pIn = (char*)pUnicode;
|
||||
char *pOut = pUCS2;
|
||||
if ( conv_t > 0 )
|
||||
if ( conv_t )
|
||||
{
|
||||
cchResult = 0;
|
||||
cchResult = iconv( conv_t, &pIn, &nLenUnicde, &pOut, &nMaxUCS2 );
|
||||
@ -1508,7 +1508,7 @@ int V_UCS2ToUTF8( const ucs2 *pUCS2, char *pUTF8, int cubDestSizeInBytes )
|
||||
size_t nMaxUTF8 = cubDestSizeInBytes - 1;
|
||||
char *pIn = (char *)pUCS2;
|
||||
char *pOut = (char *)pUTF8;
|
||||
if ( conv_t > 0 )
|
||||
if ( conv_t )
|
||||
{
|
||||
cchResult = 0;
|
||||
const size_t nBytesToWrite = nMaxUTF8;
|
||||
@ -1554,7 +1554,7 @@ int V_UTF8ToUCS2( const char *pUTF8, int cubSrcInBytes, ucs2 *pUCS2, int cubDest
|
||||
size_t nMaxUTF8 = cubDestSizeInBytes;
|
||||
char *pIn = (char *)pUTF8;
|
||||
char *pOut = (char *)pUCS2;
|
||||
if ( conv_t > 0 )
|
||||
if ( conv_t )
|
||||
{
|
||||
cchResult = 0;
|
||||
cchResult = iconv( conv_t, &pIn, &nLenUnicde, &pOut, &nMaxUTF8 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user