diff --git a/extensions/sdktools/vcaller.cpp b/extensions/sdktools/vcaller.cpp index 96ea83e8..cbbe7a1e 100644 --- a/extensions/sdktools/vcaller.cpp +++ b/extensions/sdktools/vcaller.cpp @@ -559,7 +559,7 @@ static cell_t SDKCall(IPluginContext *pContext, const cell_t *params) if (int err = pContext->LocalToPhysAddr(params[retparam], &sp_addr); err != SP_ERROR_NONE) { return pContext->ThrowNativeErrorEx(err, "Could not read argument"); } - *reinterpret_cast(sp_addr) = reinterpret_cast(addr); + *reinterpret_cast(sp_addr) = reinterpret_cast(addr); return 0; } else { cell_t *addr = (cell_t *)vc->retbuf; diff --git a/extensions/sdktools/vdecoder.cpp b/extensions/sdktools/vdecoder.cpp index 767d5494..55ffd643 100644 --- a/extensions/sdktools/vdecoder.cpp +++ b/extensions/sdktools/vdecoder.cpp @@ -304,7 +304,7 @@ DataStatus EncodeValveParam(IPluginContext *pContext, if (pContext->LocalToPhysAddr(param, &sp_addr) != SP_ERROR_NONE) { return Data_Fail; } - *reinterpret_cast(sp_addr) = reinterpret_cast(*(void**)buffer); + *reinterpret_cast(sp_addr) = reinterpret_cast(*(void**)buffer); return Data_Okay; } @@ -635,7 +635,6 @@ DataStatus DecodeValveParam(IPluginContext *pContext, } void* addr = (void*)(*reinterpret_cast(sp_addr)); - if (addr == nullptr && (data->decflags & VDECODE_FLAG_ALLOWNULL) == 0) { pContext->ThrowNativeError("NULL Address not allowed");