mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
Fix a bad pointer dereference / cast.
This commit is contained in:
1 parent
33b291a36e
commit
dad8f5cd25
1 file changed
+1
-1
@@ -3019,7 +3019,7 @@ int sceNetAdhocMatchingGetHelloOpt(int matchingId, u32 optLenAddr, u32 optDataAd
|
||||
|
||||
if (!Memory::IsValidAddress(optLenAddr)) return ERROR_NET_ADHOC_MATCHING_INVALID_ARG;
|
||||
|
||||
s32_le * optlen = (s32_le *)optLenAddr;
|
||||
s32_le *optlen = PSPPointer<s32_le>::Create(optLenAddr);
|
||||
|
||||
// Multithreading Lock
|
||||
peerlock.lock();
|
||||
|
||||
Reference in new issue
Block a user