[Kernel] Fix use of wrong macro in XamEnumerate for extended error.

This commit is contained in:
gibbed 2018-11-29 12:34:56 -06:00
parent 527f960288
commit 919882dd68
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ dword_result_t XamEnumerate(dword_t handle, dword_t flags, lpvoid_t buffer,
kernel_state()->CompleteOverlappedImmediateEx(
overlapped,
result == X_ERROR_SUCCESS ? X_ERROR_SUCCESS : X_ERROR_FUNCTION_FAILED,
X_RESULT_FROM_WIN32(result),
X_HRESULT_FROM_WIN32(result),
result == X_ERROR_SUCCESS ? item_count : 0);
return X_ERROR_IO_PENDING;
} else {