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:
@@ -567,5 +567,10 @@ patches = [
|
|||||||
# ApcOnboardingCoordinatorImpl::CreateOnboardingController
|
# ApcOnboardingCoordinatorImpl::CreateOnboardingController
|
||||||
# https://crrev.com/101d5657f1
|
# https://crrev.com/101d5657f1
|
||||||
'name': 'chrome_browser_autofill_1322387',
|
'name': 'chrome_browser_autofill_1322387',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
# Windows: Fix time_win.cc compile error with cef_sandbox.
|
||||||
|
# https://chromium-review.googlesource.com/c/chromium/src/+/3650405
|
||||||
|
'name': 'base_time_3650405',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
13
patch/patches/base_time_3650405.patch
Normal file
13
patch/patches/base_time_3650405.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git base/time/time_win.cc base/time/time_win.cc
|
||||||
|
index eabcc10ad2c31..014dd169992f0 100644
|
||||||
|
--- base/time/time_win.cc
|
||||||
|
+++ base/time/time_win.cc
|
||||||
|
@@ -406,7 +406,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