[PATCH 0/5] MR355: win32u: Move more display mode logic out of graphics drivers.

Rémi Bernon (@rbernon) wine at gitlab.winehq.org
Fri Jul 1 02:22:55 CDT 2022


On Fri Jul  1 07:10:03 2022 +0000, Zhiyi Zhang wrote:
> You should move this memcpy() before pthread_mutex_unlock().
It's copying from the local `mode` variable, which has been copied from the cached modes within the mutex already. It's a bit redundant but I used the local variable for ENUM_CURRENT_SETTINGS.

It's pretty much temporary anyway as I intend to move the existing mode enumeration to win32u entirely later and only keep ENUM_CURRENT_SETTINGS in the drivers.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/355#note_3094



More information about the wine-devel mailing list