Rémi Bernon (@rbernon) commented about programs/wineboot/wineboot.c:
- return freq;
+}
+static BOOL is_tsc_trusted_by_the_kernel(void) +{
- char buf[4] = {};
- DWORD num_read;
- HANDLE handle;
- BOOL ret = TRUE;
- /* Darwin for x86-64 uses the TSC internally for timekeeping, so it can always
* be trusted.
* For BSDs there seems to be no unified interface to query TSC quality.
* If there is a sysfs entry with clocksource information, use it to check though. */
- handle = CreateFileA( "\??\unix\sys\bus\clocksource\devices\clocksource0\current_clocksource",
```suggestion:-0+0 handle = CreateFileW( L"\??\unix\sys\bus\clocksource\devices\clocksource0\current_clocksource", ```
We use W versions everywhere. Not that it matters much here but it's more consistent.