[PATCH] oledb32: Support Milliseconds when converting BSTR -> DBTIMESTAMP
Alexandre Julliard
julliard at winehq.org
Thu Oct 17 14:12:42 CDT 2019
Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:
> + char *buff = strdupWtoA(s);
> + static const char *format = "%d-%d-%d %d:%d:%d.%d";
> +
> + if(sscanf( buff, format, &d->year, &d->month, &d->day, &d->hour, &d->minute, &d->second, &d->fraction) != 7)
There shouldn't be any reason to convert to Ansi, simply scan the
Unicode string.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list