[XAM/User] Fix wrong error code given when ReadProfileSettings buffer is too small
Strange, seems ReadProfileSettings returns this error as the result code instead of the xoverlapped error code - it could be possible other Xam functions do the same too. This fixes Crackdown loading (thanks Gliniak for the tip about buffer size), hope it doesn't break any other games though.
This commit is contained in:
parent
64012d4e1b
commit
43950115b6
|
@ -287,7 +287,6 @@ dword_result_t XamUserReadProfileSettings(
|
||||||
if (overlapped_ptr) {
|
if (overlapped_ptr) {
|
||||||
kernel_state()->CompleteOverlappedImmediate(overlapped_ptr,
|
kernel_state()->CompleteOverlappedImmediate(overlapped_ptr,
|
||||||
X_ERROR_INSUFFICIENT_BUFFER);
|
X_ERROR_INSUFFICIENT_BUFFER);
|
||||||
return X_ERROR_IO_PENDING;
|
|
||||||
}
|
}
|
||||||
return X_ERROR_INSUFFICIENT_BUFFER;
|
return X_ERROR_INSUFFICIENT_BUFFER;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue