Fixing overlapped return from XamUserReadProfileSettings.
This commit is contained in:
parent
2d08535672
commit
c34601469b
|
@ -125,7 +125,12 @@ SHIM_CALL XamUserReadProfileSettings_shim(PPCContext* ppc_state,
|
||||||
|
|
||||||
if (user_index) {
|
if (user_index) {
|
||||||
// Only support user 0.
|
// Only support user 0.
|
||||||
SHIM_SET_RETURN_32(X_ERROR_NOT_FOUND);
|
if (overlapped_ptr) {
|
||||||
|
state->CompleteOverlappedImmediate(overlapped_ptr, X_ERROR_NOT_FOUND);
|
||||||
|
SHIM_SET_RETURN_32(X_ERROR_IO_PENDING);
|
||||||
|
} else {
|
||||||
|
SHIM_SET_RETURN_32(X_ERROR_NOT_FOUND);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto& user_profile = state->user_profile();
|
const auto& user_profile = state->user_profile();
|
||||||
|
@ -167,8 +172,10 @@ SHIM_CALL XamUserReadProfileSettings_shim(PPCContext* ppc_state,
|
||||||
if (overlapped_ptr) {
|
if (overlapped_ptr) {
|
||||||
state->CompleteOverlappedImmediate(overlapped_ptr,
|
state->CompleteOverlappedImmediate(overlapped_ptr,
|
||||||
X_ERROR_INVALID_PARAMETER);
|
X_ERROR_INVALID_PARAMETER);
|
||||||
|
SHIM_SET_RETURN_32(X_ERROR_IO_PENDING);
|
||||||
|
} else {
|
||||||
|
SHIM_SET_RETURN_32(X_ERROR_INVALID_PARAMETER);
|
||||||
}
|
}
|
||||||
SHIM_SET_RETURN_32(X_ERROR_INVALID_PARAMETER);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SHIM_SET_MEM_32(buffer_size_ptr, size_needed);
|
SHIM_SET_MEM_32(buffer_size_ptr, size_needed);
|
||||||
|
@ -176,8 +183,10 @@ SHIM_CALL XamUserReadProfileSettings_shim(PPCContext* ppc_state,
|
||||||
if (overlapped_ptr) {
|
if (overlapped_ptr) {
|
||||||
state->CompleteOverlappedImmediate(overlapped_ptr,
|
state->CompleteOverlappedImmediate(overlapped_ptr,
|
||||||
X_ERROR_INSUFFICIENT_BUFFER);
|
X_ERROR_INSUFFICIENT_BUFFER);
|
||||||
|
SHIM_SET_RETURN_32(X_ERROR_IO_PENDING);
|
||||||
|
} else {
|
||||||
|
SHIM_SET_RETURN_32(X_ERROR_INSUFFICIENT_BUFFER);
|
||||||
}
|
}
|
||||||
SHIM_SET_RETURN_32(X_ERROR_INSUFFICIENT_BUFFER);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue