[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
|
// 2 = opened
|
||||||
uint32_t disposition = create ? 1 : 2;
|
uint32_t disposition = create ? 1 : 2;
|
||||||
if (disposition_ptr) {
|
if (disposition_ptr) {
|
||||||
if (overlapped_ptr) {
|
// In case when overlapped_ptr exist we should clear disposition_ptr first
|
||||||
// If async always set to zero, but don't set to a real value.
|
// however we're executing it immediately, so it's not required
|
||||||
*disposition_ptr = 0;
|
|
||||||
} else {
|
|
||||||
*disposition_ptr = disposition;
|
*disposition_ptr = disposition;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (create) {
|
if (create) {
|
||||||
result = content_manager->CreateContent(root_name.value(), content_data);
|
result = content_manager->CreateContent(root_name.value(), content_data);
|
||||||
|
|
Loading…
Reference in New Issue