[PATCH 12/15] msvcrt: Swap the threadlocinfo pointers in setlocale().
Piotr Caban
piotr at codeweavers.com
Wed Nov 18 10:26:24 CST 2020
From: Chip Davis <cdavis at codeweavers.com>
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>
---
dlls/msvcr90/tests/msvcr90.c | 344 ++++++++++++++---------------------
dlls/msvcrt/locale.c | 170 +++--------------
2 files changed, 161 insertions(+), 353 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-msvcrt-Swap-the-threadlocinfo-pointers-in-setlocale.txt
Type: text/x-patch
Size: 40182 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20201118/29552ddc/attachment-0001.bin>
More information about the wine-devel
mailing list