SysStringLen can get a NULL pointer (and shall return 0).
This commit is contained in:
parent
656eebd866
commit
be5e3c6512
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue