SysStringLen can get a NULL pointer (and shall return 0).

This commit is contained in:
Eric Pouech 1999-12-12 21:27:41 +00:00 committed by Alexandre Julliard
parent 656eebd866
commit be5e3c6512
1 changed files with 1 additions and 0 deletions

View File

@ -279,6 +279,7 @@ int WINAPI SysStringLen(BSTR str)
{
DWORD* bufferPointer;
if (!str) return 0;
/*
* The length of the string (in bytes) is contained in a DWORD placed
* just before the BSTR pointer