[Bug 24290] GetOpenFileName() triggers read of uninitialized variable

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Sep 7 14:34:44 CDT 2010


--- Comment #6 from Nikolay Sivov <bunglehead at gmail.com> 2010-09-07 14:34:44 CDT ---
Probably a valid problem, yes:

    pszText = lpLVItem->pszText;
    bResult = LISTVIEW_GetItemT(infoPtr, lpLVItem, isW);
    if (bResult && lpLVItem->pszText != pszText)
    if (lpLVItem->pszText != LPSTR_TEXTCALLBACKW)
        textcpynT(pszText, isW, lpLVItem->pszText, isW, lpLVItem->cchTextMax);
        pszText = LPSTR_TEXTCALLBACKW;
    lpLVItem->pszText = pszText;

Here assumption about set pszText is made, and it hasn't to be set here.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list