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

Unified Diff: runtime/bin/file_win.cc

Issue 2700673004: Windows: VirtualFree with MEM_RELEASE wants 0 instead of the region's size. (Closed)
Patch Set: Created 3 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_win.cc
diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
index bdd7065167ecad362023a843031dc02b7c5f5092..989adfdc8148c199ab73e23a1ac2df9b83514ec6 100644
--- a/runtime/bin/file_win.cc
+++ b/runtime/bin/file_win.cc
@@ -116,7 +116,7 @@ MappedMemory* File::Map(File::MapType type, int64_t position, int64_t length) {
void MappedMemory::Unmap() {
- bool result = VirtualFree(address_, size_, MEM_RELEASE);
+ BOOL result = VirtualFree(address_, 0, MEM_RELEASE);
ASSERT(result);
address_ = 0;
size_ = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698