forked from Mirrors/wine-wine
Allow NULL as argument to SysFreeString in accordance with SDK.
parent
0a7aa169c2
commit
3e9608df2a
|
@ -230,6 +230,9 @@ void WINAPI SysFreeString(BSTR in)
|
||||||
{
|
{
|
||||||
DWORD* bufferPointer;
|
DWORD* bufferPointer;
|
||||||
|
|
||||||
|
/* NULL is a valid parameter */
|
||||||
|
if(!in) return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We have to be careful when we free a BSTR pointer, it points to
|
* We have to be careful when we free a BSTR pointer, it points to
|
||||||
* the beginning of the string but it skips the byte count contained
|
* the beginning of the string but it skips the byte count contained
|
||||||
|
|
Loading…
Reference in New Issue