Windows: Fix a batch of MSVC warnings from CI

Signed/unsigned comparisons, bool/int mixes and narrowing in our own code,
plus duplicate NOMINMAX defines. The UWP Common/Core/UI projects now define
_CRT_NO_POSIX_ERROR_CODES like the desktop ones, so SocketCompat.h no longer
redefines the errno macros there. ImMemView's byte search no longer strdup()s
the query (it leaked on the error path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-31 09:30:13 +01:00
1 parent c0fd904fee
commit 58b84a89a7
19 files changed
+34 -32

No files matched your search

+2 -2
View File
@@ -1869,7 +1869,7 @@ static PSPThread *__KernelNextThread() {
// A busy syscall keeps the CPU unless something better wants it. An idle thread stands in.
PSPThread *busy = busySyscalls.empty() ? nullptr : __KernelBestBusyThread();
if (busy) {
const u32 busyPriority = busy->nt.currentPriority;
const s32 busyPriority = busy->nt.currentPriority;
const SceUID bestReady = threadReadyQueue.peek_first();
PSPThread *bestReadyThread = bestReady != 0 ? kernelObjects.GetFast<PSPThread>(bestReady) : nullptr;
const bool readyOutranks = bestReadyThread && bestReadyThread->nt.currentPriority < busyPriority;
@@ -3823,7 +3823,7 @@ bool __KernelCheckCallbacks() {
// canceled.)
PSPThread *cur = __GetCurrentThread();
u32 error;
u32 bestPriority = 0xFFFFFFFF;
s32 bestPriority = 0x7FFFFFFF;
if (cur && cur->isRunning())
bestPriority = cur->nt.currentPriority;
SceUID bestReady = threadReadyQueue.peek_first();