- Timestamp:
- Sep 24, 2018 4:45:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnDDropTarget.cpp
r74366 r74448 410 410 if (pwszFile) 411 411 { 412 const UINT c chFileUtf16 = DragQueryFileW(hDrop, i /* File index */,412 const UINT cwcFileUtf16 = DragQueryFileW(hDrop, i /* File index */, 413 413 pwszFile, cchFile + 1 /* Include terminator */); 414 414 415 AssertMsg(c chFileUtf16 == cchFile, ("cchFileUtf16 (%RU16) does not match cchFile (%RU16)\n",416 c chFileUtf8, cchFile));417 RT_NOREF(c chFileUtf16);415 AssertMsg(cwcFileUtf16 == cchFile, ("cchFileUtf16 (%RU16) does not match cchFile (%RU16)\n", 416 cwcFileUtf16, cchFile)); 417 RT_NOREF(cwcFileUtf16); 418 418 419 419 rc = RTUtf16ToUtf8(pwszFile, &pszFileUtf8); 420 AssertRC(rc);421 Assert(RTStrIsValidEncoding(pszFileUtf8));422 423 cchFileUtf8 = (UINT)strlen(pszFileUtf8);424 Assert(cchFileUtf8);420 if (RT_SUCCESS(rc)) 421 { 422 cchFileUtf8 = (UINT)strlen(pszFileUtf8); 423 Assert(cchFileUtf8); 424 } 425 425 426 426 RTMemFree(pwszFile); … … 455 455 cchFiles += cchFileUtf8; 456 456 } 457 else 458 LogRel(("DnD: Error handling file entry #%u, rc=%Rrc\n", i, rc)); 457 459 458 460 if (pszFileUtf8)
Note:
See TracChangeset
for help on using the changeset viewer.