30 Oct
2025
30 Oct
'25
7:27 p.m.
Paul Gofman (@gofman) commented about dlls/kernelbase/kernelbase.h:
return !status; }
+static inline DWORD set_ntwaitstatus( NTSTATUS status ) +{ + if (NT_ERROR(status)) + { + SetLastError( RtlNtStatusToDosError( status )); + return WAIT_FAILED; + } + return (DWORD)status; +} +
I doubt we need to factor out such a helper for just two wait functions, if we cannot use existing one it is probably better to duplicate this part. Probably changing to NT_ERROR() as Dmirty initially suggested. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9305#note_120161