| commit | be5e3c6512f726193f4771c76eaee0c8d358e618 | [log] [tgz] |
|---|---|---|
| author | Eric Pouech <Eric.Pouech@wanadoo.fr> | Sun Dec 12 21:27:41 1999 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Sun Dec 12 21:27:41 1999 +0000 |
| tree | 3de782e82c0b3307034dbec03f7d7d7ba3be1ea4 | |
| parent | 656eebd8661e8ff5c334a735b4809bbb839dd9be [diff] |
SysStringLen can get a NULL pointer (and shall return 0).
diff --git a/dlls/oleaut32/ole2disp.c b/dlls/oleaut32/ole2disp.c index 62f958e..3fd4204 100644 --- a/dlls/oleaut32/ole2disp.c +++ b/dlls/oleaut32/ole2disp.c
@@ -279,6 +279,7 @@ { DWORD* bufferPointer; + if (!str) return 0; /* * The length of the string (in bytes) is contained in a DWORD placed * just before the BSTR pointer