diff --git a/Core/HLE/sceNetAdhocMatching.cpp b/Core/HLE/sceNetAdhocMatching.cpp index 14c6116a2a..7330bae1af 100644 --- a/Core/HLE/sceNetAdhocMatching.cpp +++ b/Core/HLE/sceNetAdhocMatching.cpp @@ -1784,7 +1784,7 @@ static int sceNetAdhocMatchingCreate(int mode, int maxnum, int port, int rxbufle getLocalMac(&localmac); // Clear Memory - memset(context, 0, sizeof(SceNetAdhocMatchingContext)); + *context = {}; // Allocate Receive Buffer context->rxbuf = (uint8_t*)malloc(rxbuflen);