[Bug 23986] New: datetime control SetRange() has no effect, enter big year will cause CTime assert failed

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Aug 13 04:09:35 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=23986

           Summary: datetime control SetRange() has no effect, enter big
                    year will cause CTime assert failed
           Product: Wine
           Version: 1.2
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: comctl32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: drangon.mail at gmail.com


When use datetime control, call SetRange() to limit time, then modified the
year value to out of range, the modification can success, so SetRange() has no
effect.

In Windows, the same application, the same SetRange() call, then modified the
year value to out of range, the datetime control will refuse the modification,
and return to old value.

I think there should be some check in DATETIME_Char() function in file
"dlls/comctl32/datetime.c" , after change the datetime, call something like
MONTHCAL_IsDateInValidRange() to validate the value.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list