Commit be5e3c65 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent 656eebd8
...@@ -279,6 +279,7 @@ int WINAPI SysStringLen(BSTR str) ...@@ -279,6 +279,7 @@ int WINAPI SysStringLen(BSTR str)
{ {
DWORD* bufferPointer; DWORD* bufferPointer;
if (!str) return 0;
/* /*
* The length of the string (in bytes) is contained in a DWORD placed * The length of the string (in bytes) is contained in a DWORD placed
* just before the BSTR pointer * just before the BSTR pointer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment