summaryrefslogtreecommitdiffstats
path: root/webkit/default_plugin/plugin_database_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/default_plugin/plugin_database_handler.cc')
-rw-r--r--webkit/default_plugin/plugin_database_handler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/default_plugin/plugin_database_handler.cc b/webkit/default_plugin/plugin_database_handler.cc
index d35fdb1..3aeff63 100644
--- a/webkit/default_plugin/plugin_database_handler.cc
+++ b/webkit/default_plugin/plugin_database_handler.cc
@@ -144,13 +144,13 @@ int32 PluginDatabaseHandler::Write(NPStream* stream, int32 offset,
}
}
- unsigned long bytes_written = 0;
+ DWORD bytes_written = 0;
if (0 == lstrcmpiA(stream->url, plugin_finder_url_.c_str())) {
DCHECK(plugin_downloads_file_ != INVALID_HANDLE_VALUE);
WriteFile(plugin_downloads_file_, buffer, buffer_length, &bytes_written,
NULL);
- DCHECK(buffer_length == bytes_written);
+ DCHECK_EQ(buffer_length, static_cast<int32>(bytes_written));
}
return bytes_written;
}