Some tests would be nice. This function is documented to do very little, so while surprising, this may be close to the correct implementation. However, `SetLastError()` should be used instead of `RtlSetLastWin32Error()` if indeed the tests show that the last error is set.