Removed IsBadStringPtrA call that caused trouble.

This commit is contained in:
Huw D M Davies 2002-01-29 16:56:48 +00:00 committed by Alexandre Julliard
parent 2d783f70f5
commit 8ebf7c292f
1 changed files with 1 additions and 10 deletions

View File

@ -1470,23 +1470,14 @@ DSA_SetItem (const HDSA hdsa, INT nIndex, LPVOID pSrc)
INT WINAPI INT WINAPI
DSA_InsertItem (const HDSA hdsa, INT nIndex, LPVOID pSrc) DSA_InsertItem (const HDSA hdsa, INT nIndex, LPVOID pSrc)
{ {
INT nNewItems, nSize, i; INT nNewItems, nSize;
LPVOID lpTemp, lpDest; LPVOID lpTemp, lpDest;
LPDWORD p;
TRACE("(%p %d %p)\n", hdsa, nIndex, pSrc); TRACE("(%p %d %p)\n", hdsa, nIndex, pSrc);
if ((!hdsa) || nIndex < 0) if ((!hdsa) || nIndex < 0)
return -1; 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 */ /* when nIndex >= nItemCount then append */
if (nIndex >= hdsa->nItemCount) if (nIndex >= hdsa->nItemCount)
nIndex = hdsa->nItemCount; nIndex = hdsa->nItemCount;