Chip Davis : msvcrt: Swap the threadlocinfo pointers in setlocale().
Module: wine Branch: master Commit: f2482218708e038bf1ccb9491d0da61fea4be34b URL: https://source.winehq.org/git/wine.git/?a=commit;h=f2482218708e038bf1ccb9491... Author: Chip Davis <cdavis(a)codeweavers.com> Date: Wed Nov 18 17:26:24 2020 +0100 msvcrt: Swap the threadlocinfo pointers in setlocale(). Do this instead of swapping their contents. This way, the result of _get_current_locale(), which references the current threadlocinfo, won't change after a setlocale() call. Signed-off-by: Chip Davis <cdavis(a)codeweavers.com> Signed-off-by: Piotr Caban <piotr(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/msvcr90/tests/msvcr90.c | 344 ++++++++++++++++++------------------------- dlls/msvcrt/locale.c | 170 +++------------------ 2 files changed, 161 insertions(+), 353 deletions(-) Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=f2482218708e038bf1ccb...
participants (1)
-
Alexandre Julliard