Skip to content

Commit

Permalink
Build the RAIntegration menu on the right thread
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Apr 6, 2024
1 parent 9ec5efd commit 00acaa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core/RetroAchievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,10 @@ static void load_integration_callback(int result, const char *error_message, rc_
rc_client_raintegration_set_write_memory_function(g_rcClient, &raintegration_write_memory_handler);
rc_client_raintegration_set_get_game_name_function(g_rcClient, &raintegration_get_game_name_handler);

HWND hWnd = (HWND)userdata;
rc_client_raintegration_rebuild_submenu(g_rcClient, GetMenu(hWnd));
System_RunCallbackInWndProc([](void *vhWnd, void *userdata) {
HWND hWnd = reinterpret_cast<HWND>(vhWnd);
rc_client_raintegration_rebuild_submenu(g_rcClient, GetMenu(hWnd));
}, nullptr);
break;
}
case RC_MISSING_VALUE:
Expand Down

0 comments on commit 00acaa3

Please sign in to comment.