From 99bf92e338f190be65faaedffb5432ae46023ba8 Mon Sep 17 00:00:00 2001 From: "Dimitrie O. Paun" <dpaun@rogers.com> Date: Wed, 26 Nov 2003 03:35:16 +0000 Subject: [PATCH] SysReAllocStringLen is documented to segfault on NULL pointer. --- dlls/oleaut32/oleaut.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dlls/oleaut32/oleaut.c b/dlls/oleaut32/oleaut.c index b4dcedf5efa..ebf08adc400 100644 --- a/dlls/oleaut32/oleaut.c +++ b/dlls/oleaut32/oleaut.c @@ -293,12 +293,6 @@ BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len) */ int WINAPI SysReAllocStringLen(BSTR* old, const OLECHAR* str, unsigned int len) { - /* - * Sanity check - */ - if (old==NULL) - return 0; - if (*old!=NULL) { DWORD newbytelen = len*sizeof(WCHAR); DWORD *ptr = HeapReAlloc(GetProcessHeap(),0,((DWORD*)*old)-1,newbytelen+sizeof(WCHAR)+sizeof(DWORD)); -- GitLab