Allow NULL as argument to SysFreeString in accordance with SDK.

oldstable
Rein Klazes 1999-06-05 11:53:33 +00:00 committed by Alexandre Julliard
parent 0a7aa169c2
commit 3e9608df2a
1 changed files with 3 additions and 0 deletions

View File

@ -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