Windows: Fix time_win.cc compile error with cef_sandbox
This commit is contained in:
parent
c7ea0c5958
commit
100b457743
|
@ -578,5 +578,10 @@ patches = [
|
|||
# Fixes compile error with official cef_sandbox build on Windows.
|
||||
# https://chromium-review.googlesource.com/c/chromium/src/+/3703780
|
||||
'name': 'base_values_3703780',
|
||||
},
|
||||
{
|
||||
# Windows: Fix time_win.cc compile error with cef_sandbox.
|
||||
# https://chromium-review.googlesource.com/c/chromium/src/+/3718022
|
||||
'name': 'base_time_3718022',
|
||||
}
|
||||
]
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
diff --git base/allocator/partition_allocator/partition_alloc_base/time/time_win.cc base/allocator/partition_allocator/partition_alloc_base/time/time_win.cc
|
||||
index e36aeb64abdb7..7deae93b86f03 100644
|
||||
--- base/allocator/partition_allocator/partition_alloc_base/time/time_win.cc
|
||||
+++ base/allocator/partition_allocator/partition_alloc_base/time/time_win.cc
|
||||
@@ -327,7 +327,7 @@ DWORD (*g_tick_function)(void) = &timeGetTimeWrapper;
|
||||
// "rollover" counter.
|
||||
union LastTimeAndRolloversState {
|
||||
// The state as a single 32-bit opaque value.
|
||||
- std::atomic<int32_t> as_opaque_32;
|
||||
+ std::atomic<int32_t> as_opaque_32{0};
|
||||
|
||||
// The state as usable values.
|
||||
struct {
|
Loading…
Reference in New Issue