Index: ui/base/clipboard/clipboard_win.cc |
=================================================================== |
--- ui/base/clipboard/clipboard_win.cc (revision 111826) |
+++ ui/base/clipboard/clipboard_win.cc (working copy) |
@@ -604,7 +604,8 @@ |
if (count) { |
for (int i = 0; i < count; ++i) { |
- int size = ::DragQueryFile(drop, i, NULL, 0) + 1; |
+ UINT size = ::DragQueryFile(drop, i, NULL, 0) + 1; |
+ DCHECK_GT(size, 1u); |
std::wstring file; |
::DragQueryFile(drop, i, WriteInto(&file, size), size); |
files->push_back(FilePath(file)); |