diff --git a/src/xenia/xbox.h b/src/xenia/xbox.h index 89cc78326..d6e2d8a18 100644 --- a/src/xenia/xbox.h +++ b/src/xenia/xbox.h @@ -219,21 +219,21 @@ inline void XOverlappedSetContext(void* ptr, uint32_t value) { auto p = reinterpret_cast(ptr); poly::store_and_swap(&p[2], value); } -inline void XOverlappedSetExtendedError(void* ptr, uint32_t value) { - auto p = reinterpret_cast(ptr); - poly::store_and_swap(&p[7], value); -} inline X_HANDLE XOverlappedGetEvent(void* ptr) { auto p = reinterpret_cast(ptr); - return poly::load_and_swap(&p[4]); + return poly::load_and_swap(&p[3]); } inline uint32_t XOverlappedGetCompletionRoutine(void* ptr) { auto p = reinterpret_cast(ptr); - return poly::load_and_swap(&p[5]); + return poly::load_and_swap(&p[4]); } inline uint32_t XOverlappedGetCompletionContext(void* ptr) { auto p = reinterpret_cast(ptr); - return poly::load_and_swap(&p[6]); + return poly::load_and_swap(&p[5]); +} +inline void XOverlappedSetExtendedError(void* ptr, uint32_t value) { + auto p = reinterpret_cast(ptr); + poly::store_and_swap(&p[6], value); } class X_ANSI_STRING {