Change errno check to ERROR_SUCCESS
This commit is contained in:
parent
043d1ece8d
commit
7f89d82889
|
@ -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 ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue