Marcus Meissner : kernel32: Added missing shift by 8.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 20 05:51:21 CST 2006


Module: wine
Branch: master
Commit: 87f9dcdb2361ad1f55b71f4f5f98de105e201b19
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=87f9dcdb2361ad1f55b71f4f5f98de105e201b19

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat Nov 18 11:07:32 2006 +0100

kernel32: Added missing shift by 8.

---

 dlls/kernel32/locale.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index e1dc46b..3eb8cf9 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -1588,7 +1588,7 @@ BOOL WINAPI GetCPInfo( UINT codepage, LP
     }
     if (table->info.def_char & 0xff00)
     {
-        cpinfo->DefaultChar[0] = table->info.def_char & 0xff00;
+        cpinfo->DefaultChar[0] = (table->info.def_char & 0xff00) >> 8;
         cpinfo->DefaultChar[1] = table->info.def_char & 0x00ff;
     }
     else




More information about the wine-cvs mailing list