From 8ebf7c292ffe065ea6e2933de63ccc1a6f63ff4a Mon Sep 17 00:00:00 2001 From: Huw D M Davies Date: Tue, 29 Jan 2002 16:56:48 +0000 Subject: [PATCH] Removed IsBadStringPtrA call that caused trouble. --- dlls/comctl32/comctl32undoc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dlls/comctl32/comctl32undoc.c b/dlls/comctl32/comctl32undoc.c index 601324bfc32..33e7d4af006 100644 --- a/dlls/comctl32/comctl32undoc.c +++ b/dlls/comctl32/comctl32undoc.c @@ -1470,23 +1470,14 @@ DSA_SetItem (const HDSA hdsa, INT nIndex, LPVOID pSrc) INT WINAPI DSA_InsertItem (const HDSA hdsa, INT nIndex, LPVOID pSrc) { - INT nNewItems, nSize, i; + INT nNewItems, nSize; LPVOID lpTemp, lpDest; - LPDWORD p; TRACE("(%p %d %p)\n", hdsa, nIndex, pSrc); if ((!hdsa) || nIndex < 0) return -1; - for (i = 0; i < hdsa->nItemSize; i += 4) { - p = *(DWORD**)((char *) pSrc + i); - if (IsBadStringPtrA ((char*)p, 256)) - TRACE("-- %d=%p\n", i, (DWORD*)p); - else - TRACE("-- %d=%p [%s]\n", i, p, debugstr_a((char*)p)); - } - /* when nIndex >= nItemCount then append */ if (nIndex >= hdsa->nItemCount) nIndex = hdsa->nItemCount;