[XAM/Content] Set disposition for overlapped cases

This commit is contained in:
Gliniak 2021-02-18 11:17:54 +01:00 committed by Rick Gibbed
parent 556893177b
commit d4c3d665d5
1 changed files with 3 additions and 6 deletions

View File

@ -183,12 +183,9 @@ dword_result_t XamContentCreateEx(dword_t user_index, lpstring_t root_name,
// 2 = opened
uint32_t disposition = create ? 1 : 2;
if (disposition_ptr) {
if (overlapped_ptr) {
// If async always set to zero, but don't set to a real value.
*disposition_ptr = 0;
} else {
*disposition_ptr = disposition;
}
// In case when overlapped_ptr exist we should clear disposition_ptr first
// however we're executing it immediately, so it's not required
*disposition_ptr = disposition;
}
if (create) {