diff --git a/client/crashpad_client_win.cc b/client/crashpad_client_win.cc index 143dc4f1..c1c3ff14 100644 --- a/client/crashpad_client_win.cc +++ b/client/crashpad_client_win.cc @@ -96,7 +96,7 @@ CRITICAL_SECTION g_critical_section_with_debug_info; void SetHandlerStartupState(StartupState state) { DCHECK(state == StartupState::kSucceeded || state == StartupState::kFailed); - base::subtle::Acquire_Store(&g_handler_startup_state, + base::subtle::Release_Store(&g_handler_startup_state, static_cast(state)); } @@ -104,7 +104,7 @@ StartupState BlockUntilHandlerStartedOrFailed() { // Wait until we know the handler has either succeeded or failed to start. base::subtle::AtomicWord startup_state; while ( - (startup_state = base::subtle::Release_Load(&g_handler_startup_state)) == + (startup_state = base::subtle::Acquire_Load(&g_handler_startup_state)) == static_cast(StartupState::kNotReady)) { Sleep(1); }