Xam: (possibly) fix XamContentCreateEx extended result being incorrectly put as an extended error.

This commit is contained in:
DrChat 2017-04-24 15:11:46 -05:00
parent 8c16f91b7b
commit 8ccefa1600
1 changed files with 6 additions and 2 deletions

View File

@ -262,6 +262,10 @@ dword_result_t XamContentCreateEx(dword_t user_index, lpstring_t root_name,
break;
}
// creation result
// 0 = ?
// 1 = created
// 2 = opened
uint32_t disposition = create ? 1 : 2;
if (disposition_ptr) {
if (overlapped_ptr) {
@ -279,8 +283,8 @@ dword_result_t XamContentCreateEx(dword_t user_index, lpstring_t root_name,
}
if (overlapped_ptr) {
kernel_state()->CompleteOverlappedImmediateEx(overlapped_ptr, result,
disposition, 0);
kernel_state()->CompleteOverlappedImmediateEx(overlapped_ptr, result, 0,
disposition);
return X_ERROR_IO_PENDING;
} else {
return result;