On Wed Sep 13 10:39:44 2023 +0000, Rémi Bernon wrote:
I think it'd be better, but then you shouldn't return HRESULT values from the unix side. I'm not sure if these specific values are supposed to be meaningful but if it's just something like E_FAIL / E_OUTOFMEMORY you can replace them with their STATUS_* equivalent.
What's the problem with casting NTSTATUS to HRESULT?