Skip to content

Commit 5365639

Browse files
authored
Win32: Fix pick core dialog (#17709)
1 parent 81b74de commit 5365639

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

gfx/common/win32_common.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,11 @@ static INT_PTR_COMPAT CALLBACK pick_core_proc(
333333
{
334334
case WM_INITDIALOG:
335335
{
336+
const core_info_t *info = NULL;
336337
HWND hwndList;
337338
unsigned i;
338-
/* Add items to list. */
339339

340+
/* Add items to list. */
340341
core_info_get_list(&core_info_list);
341342
core_info_list_get_supported_cores(core_info_list,
342343
path_get(RARCH_PATH_CONTENT), &core_info, &list_size);
@@ -349,8 +350,12 @@ static INT_PTR_COMPAT CALLBACK pick_core_proc(
349350
SendMessage(hwndList, LB_ADDSTRING, 0,
350351
(LPARAM)info->display_name);
351352
}
353+
352354
/* Select the first item in the list */
353355
SendMessage(hwndList, LB_SETCURSEL, 0, 0);
356+
info = (const core_info_t*)&core_info[0];
357+
path_set(RARCH_PATH_CORE, info->path);
358+
354359
SetFocus(hwndList);
355360
return TRUE;
356361
}

0 commit comments

Comments
 (0)