Allow NULL as argument to SysFreeString in accordance with SDK.
This commit is contained in:
parent
0a7aa169c2
commit
3e9608df2a
|
@ -229,6 +229,9 @@ void WINAPI SysFreeString16(BSTR16 in)
|
|||
void WINAPI SysFreeString(BSTR in)
|
||||
{
|
||||
DWORD* bufferPointer;
|
||||
|
||||
/* NULL is a valid parameter */
|
||||
if(!in) return;
|
||||
|
||||
/*
|
||||
* We have to be careful when we free a BSTR pointer, it points to
|
||||
|
|
Loading…
Reference in New Issue