oleaut32: be more explicit with locale dependent parsing of dates (try 2)

Nikolay Sivov nsivov at codeweavers.com
Wed Apr 14 14:08:53 CDT 2010


On 4/14/2010 22:51, André Hentschel wrote:
>       case 0x3: /* TTT TTTDD TTTDDD */
> -      if (iDate&&  dp.dwCount == 3)
> +      if (dp.dwCount == 3&&  !strncmp(ShortDate,"dd.MM.yy",8))
>
>    

>       case 0x1B: /* localized DDDTTT */
> -      if (!iDate)
> +      if (strncmp(ShortDate,"dd.MM.yy",8))
>           {
>             hRet = DISP_E_TYPEMISMATCH;
>             break;
>    
This looks like a workaround. I don't think you should hard code it this 
way, what's so special with this format?
And what is a initial problem with that?



More information about the wine-devel mailing list