Chip Davis : msvcrt: Swap the threadlocinfo pointers in setlocale().

Alexandre Julliard julliard at winehq.org
Wed Nov 18 15:48:01 CST 2020


Module: wine
Branch: master
Commit: f2482218708e038bf1ccb9491d0da61fea4be34b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=f2482218708e038bf1ccb9491d0da61fea4be34b

Author: Chip Davis <cdavis at 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 at codeweavers.com>
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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=f2482218708e038bf1ccb9491d0da61fea4be34b



More information about the wine-cvs mailing list