Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: base/clipboard_util.cc

Issue 7441: Take 2 at fixing image corruption on drag and drop.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/os_exchange_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/clipboard_util.cc
===================================================================
--- base/clipboard_util.cc (revision 3465)
+++ base/clipboard_util.cc (working copy)
@@ -356,8 +356,7 @@
if (SUCCEEDED(data_object->GetData(GetFileContentFormatZero(), &content))) {
if (TYMED_HGLOBAL == content.tymed) {
ScopedHGlobal<char> data(content.hGlobal);
- // The size includes the trailing NULL byte. We don't want it.
- file_contents->assign(data.get(), data.Size() - 1);
+ file_contents->assign(data.get(), data.Size());
}
ReleaseStgMedium(&content);
}
« no previous file with comments | « no previous file | chrome/common/os_exchange_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698