[Webkit-unassigned] [Bug 79861] New: DragData::asFilenames push same file to result in windows platform
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 28 20:04:28 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=79861
Summary: DragData::asFilenames push same file to result in
windows platform
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: huangxueqing at baidu.com
It seems like a careless error in DragDataWin.cpp, DragData::asFilenames call windows api
for (unsigned i = 0; i < numFiles; i++) {
if (!DragQueryFileW(hdrop, 0, filename, WTF_ARRAY_LENGTH(filename)))
continue;
result.append((UChar*)filename);
}
which always push 0-index file to result. If you drag some files to WinLauncher, thie filelist return same file name.
IMO, use DragQueryFileW(hdrop, i, filename, WTF_ARRAY_LENGTH(filename).
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list