Mike McCormack mike@codeweavers.com writes:
- if(szFilePath) {
- if( szFilePath )
- { len = MultiByteToWideChar( CP_ACP, 0, szFilePath, -1, NULL, 0 ); szwFilePath = HeapAlloc( GetProcessHeap(), 0, len*sizeof(WCHAR) );
if( !szwFilePath)
}return ERROR_OUTOFMEMORY; MultiByteToWideChar( CP_ACP, 0, szFilePath, -1, szwFilePath, len );
Does your coding style also forbid proper error checking, or is there another reason for removing that check? <g>