comctl32: Fix a discard const warning.

This commit is contained in:
Alexandre Julliard 2007-10-17 14:15:13 +02:00
parent 66787e65a9
commit 16080ccd48
1 changed files with 3 additions and 2 deletions

View File

@ -5040,11 +5040,12 @@ static INT LISTVIEW_FindItemA(const LISTVIEW_INFO *infoPtr, INT nStart,
BOOL hasText = lpFindInfo->flags & (LVFI_STRING | LVFI_PARTIAL); BOOL hasText = lpFindInfo->flags & (LVFI_STRING | LVFI_PARTIAL);
LVFINDINFOW fiw; LVFINDINFOW fiw;
INT res; INT res;
LPWSTR strW;
memcpy(&fiw, lpFindInfo, sizeof(fiw)); memcpy(&fiw, lpFindInfo, sizeof(fiw));
if (hasText) fiw.psz = textdupTtoW((LPCWSTR)lpFindInfo->psz, FALSE); if (hasText) fiw.psz = strW = textdupTtoW((LPCWSTR)lpFindInfo->psz, FALSE);
res = LISTVIEW_FindItemW(infoPtr, nStart, &fiw); res = LISTVIEW_FindItemW(infoPtr, nStart, &fiw);
if (hasText) textfreeT((LPWSTR)fiw.psz, FALSE); if (hasText) textfreeT(strW, FALSE);
return res; return res;
} }