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.