[XAM/Content] Set disposition for overlapped cases
This commit is contained in:
parent
556893177b
commit
d4c3d665d5
|
@ -183,13 +183,10 @@ 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 {
|
||||
// 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) {
|
||||
result = content_manager->CreateContent(root_name.value(), content_data);
|
||||
|
|
Loading…
Reference in New Issue