mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
comctl32: Fix a compiler warning.
This commit is contained in:
parent
d65c667817
commit
b406e9a7b4
@ -5040,12 +5040,12 @@ static INT LISTVIEW_FindItemA(const LISTVIEW_INFO *infoPtr, INT nStart,
|
||||
BOOL hasText = lpFindInfo->flags & (LVFI_STRING | LVFI_PARTIAL);
|
||||
LVFINDINFOW fiw;
|
||||
INT res;
|
||||
LPWSTR strW;
|
||||
LPWSTR strW = NULL;
|
||||
|
||||
memcpy(&fiw, lpFindInfo, sizeof(fiw));
|
||||
if (hasText) fiw.psz = strW = textdupTtoW((LPCWSTR)lpFindInfo->psz, FALSE);
|
||||
res = LISTVIEW_FindItemW(infoPtr, nStart, &fiw);
|
||||
if (hasText) textfreeT(strW, FALSE);
|
||||
textfreeT(strW, FALSE);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user