mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: Fix time_win.cc compile error with cef_sandbox
This commit is contained in:
@@ -578,5 +578,10 @@ patches = [
|
|||||||
# Fixes compile error with official cef_sandbox build on Windows.
|
# Fixes compile error with official cef_sandbox build on Windows.
|
||||||
# https://chromium-review.googlesource.com/c/chromium/src/+/3703780
|
# https://chromium-review.googlesource.com/c/chromium/src/+/3703780
|
||||||
'name': 'base_values_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',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
13
patch/patches/base_time_3718022.patch
Normal file
13
patch/patches/base_time_3718022.patch
Normal file
@@ -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 {
|
Reference in New Issue
Block a user