Change errno check to ERROR_SUCCESS

This commit is contained in:
v-dareck 2017-02-22 11:51:31 -08:00
parent 043d1ece8d
commit 7f89d82889

View file

@ -253,7 +253,7 @@ std::string getUTF8StringFromString( const SQLWCHAR* source )
DWORD rc;
int cch = 0;
errno_t err = mplat_wctomb_s( &cch, c_str, sizeof( c_str ), source[i++] );
if (cch > 0 && err == 0)
if ( cch > 0 && err == ERROR_SUCCESS )
{
str.append( std::string( c_str, cch ) );
}