From: Chip Davis cdavis@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@codeweavers.com Signed-off-by: Piotr Caban piotr@codeweavers.com --- dlls/msvcr90/tests/msvcr90.c | 344 ++++++++++++++--------------------- dlls/msvcrt/locale.c | 170 +++-------------- 2 files changed, 161 insertions(+), 353 deletions(-)