From be5e3c6512f726193f4771c76eaee0c8d358e618 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 12 Dec 1999 21:27:41 +0000 Subject: [PATCH] SysStringLen can get a NULL pointer (and shall return 0). --- dlls/oleaut32/ole2disp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/oleaut32/ole2disp.c b/dlls/oleaut32/ole2disp.c index 62f958ecdbb..3fd42048695 100644 --- a/dlls/oleaut32/ole2disp.c +++ b/dlls/oleaut32/ole2disp.c @@ -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