Skip to content

Commit db1592e

Browse files
committed
fix a few obvious Windows build errors
1 parent f985f4b commit db1592e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

util.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,15 @@ class MmapWrapperImpl : public MmapWrapper {
114114
MmapWrapperImpl(void* data, size_t size, HANDLE hfile, HANDLE hmapping)
115115
: MmapWrapper(data, size), hfile_(hfile), hmapping_(hmapping) {}
116116

117-
~WindowsMmapWrapper() override {
117+
~MmapWrapperImpl() override {
118118
if (data_) {
119119
UnmapViewOfFile(data_);
120120
}
121121
if (hmapping_ != NULL) {
122-
CloseHandle(mapping_handle_);
122+
CloseHandle(hmapping_);
123123
}
124124
if (hfile_ != INVALID_HANDLE_VALUE) {
125-
CloseHandle(file_handle_);
125+
CloseHandle(hfile_);
126126
}
127127
}
128128

0 commit comments

Comments
 (0)