XamContentCreateEx - Extended Error Support
This commit is contained in:
parent
1513a81a30
commit
98b063b346
|
@ -204,8 +204,12 @@ dword_result_t XamContentCreateEx(dword_t user_index, lpstring_t root_name,
|
|||
}
|
||||
|
||||
if (overlapped_ptr) {
|
||||
kernel_state()->CompleteOverlappedImmediateEx(overlapped_ptr, result, 0,
|
||||
disposition);
|
||||
X_RESULT extended_error = X_HRESULT_FROM_WIN32(result);
|
||||
if (int32_t(extended_error) < 0) {
|
||||
result = X_ERROR_FUNCTION_FAILED;
|
||||
}
|
||||
kernel_state()->CompleteOverlappedImmediateEx(overlapped_ptr, result,
|
||||
extended_error, disposition);
|
||||
return X_ERROR_IO_PENDING;
|
||||
} else {
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue