[1/7] comctl32/updown: Skip thousands separation on hex mode

Nikolay Sivov bunglehead at gmail.com
Sun Sep 20 15:02:05 CDT 2009


As a partial fix for http://bugs.winehq.org/show_bug.cgi?id=7034

Changelog:
    - Skip thousands separation on hex mode

>From 10e4417cdf7671c6a2eac53bbce7817670c98565 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Sat, 19 Sep 2009 19:40:10 +0400
Subject: Skip thousands separation on hex mode

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

diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c
index a4b9271..149de29 100644
--- a/dlls/comctl32/updown.c
+++ b/dlls/comctl32/updown.c
@@ -328,7 +328,7 @@ static BOOL UPDOWN_SetBuddyInt (const UPDOWN_INFO *infoPtr)
 

     /* Do thousands separation if necessary */
-    if (!(infoPtr->dwStyle & UDS_NOTHOUSANDS) && (len > 3)) {
+    if ((infoPtr->Base == 10) && !(infoPtr->dwStyle & UDS_NOTHOUSANDS) && (len > 3)) {
         WCHAR tmp[COUNT_OF(txt)], *src = tmp, *dst = txt;
         WCHAR sep = UPDOWN_GetThousandSep();
 	int start = len % 3;
-- 
1.5.6.5







More information about the wine-patches mailing list