aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-09-29 16:43:30 +0100
committerfanquake <fanquake@gmail.com>2022-09-29 16:43:30 +0100
commit1a463c70a368fb20316e03efac273438cf47baa3 (patch)
treebd49d3c60051c1a8d8f030fa4ba7a29237fe7479
parentf608f25313d2867a6abdfc38abdb86da40924cfc (diff)
Squashed 'src/leveldb/' changes from 22f1e4a02f..e2f10b4e47
e2f10b4e47 Merge bitcoin-core/leveldb-subtree#34: win32: fix -Wmissing-field-initializers warnings 12c52b392d win32: fix -Wmissing-field-initializers warnings git-subtree-dir: src/leveldb git-subtree-split: e2f10b4e47bc950a81bc96d1c6db3a8048216642
-rw-r--r--util/env_windows.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/env_windows.cc b/util/env_windows.cc
index 4dcba222a1..aafcdcc3be 100644
--- a/util/env_windows.cc
+++ b/util/env_windows.cc
@@ -194,7 +194,7 @@ class WindowsRandomAccessFile : public RandomAccessFile {
Status Read(uint64_t offset, size_t n, Slice* result,
char* scratch) const override {
DWORD bytes_read = 0;
- OVERLAPPED overlapped = {0};
+ OVERLAPPED overlapped = {};
overlapped.OffsetHigh = static_cast<DWORD>(offset >> 32);
overlapped.Offset = static_cast<DWORD>(offset);