Fixed coverity issue 1047634
This commit is contained in:
parent
82f0efd6e6
commit
a55afb58a4
@ -352,5 +352,11 @@ int ConvertFromUnicode(UINT CodePage, DWORD dwFlags, LPCWSTR lpWideCharStr, int
|
||||
if (status != cbMultiByte)
|
||||
status = 0;
|
||||
|
||||
if ((status <= 0) && allocate)
|
||||
{
|
||||
free(*lpMultiByteStr);
|
||||
*lpMultiByteStr = NULL;
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user