Global (Windows): fixes building on i686

This commit is contained in:
Carter Li
2026-04-05 14:40:38 +08:00
parent 7887067301
commit 7045dea284
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ bool ffPathExpandEnv(const char* in, FFstrbuf* out) {
}
len /= sizeof(wchar_t); // convert from bytes to characters
size_t outLen; // in characters, including null terminator
SIZE_T outLen; // in characters, including null terminator
if (!NT_SUCCESS(RtlExpandEnvironmentStrings(NULL, pathInW, len, pathOutW, ARRAY_SIZE(pathOutW), &outLen))) {
return false;
}
+3 -3
View File
@@ -616,9 +616,9 @@ static inline uint64_t ffKSystemTimeToUInt64(const volatile KSYSTEM_TIME* pTime)
uint32_t low, high1, high2;
do {
high1 = pTime->High1Time;
low = pTime->LowPart;
high2 = pTime->High2Time;
high1 = (uint32_t) pTime->High1Time;
low = (uint32_t) pTime->LowPart;
high2 = (uint32_t) pTime->High2Time;
} while (high1 != high2);
return ((uint64_t) high1 << 32) | low;