[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:
emoose 2020-01-04 14:34:56 +00:00 committed by illusion
parent 64012d4e1b
commit 43950115b6
1 changed files with 0 additions and 1 deletions

View File

@ -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;
} }