From: Alexandre Julliard Subject: Re: [PATCH] oledb32: Support Milliseconds when converting BSTR -> DBTIMESTAMP Message-Id: <87r23btcd1.fsf@wine> Date: Thu, 17 Oct 2019 21:12:42 +0200 In-Reply-To: (Alistair Leslie-Hughes's message of "Mon, 14 Oct 2019 03:49:57 +0000") References: Alistair Leslie-Hughes 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@winehq.org