rpcss: Zero the memory of several variables before writing them to the pipe to silence Valgrind warnings.
This commit is contained in:
parent
fd711c57df
commit
63a74c7dd4
|
@ -110,6 +110,7 @@ static void RPCSS_ServerProcessRESOLVEEPMessage(PRPCSS_NP_MESSAGE pMsg,
|
||||||
static void RPCSS_ServerProcessMessage(PRPCSS_NP_MESSAGE pMsg, PRPCSS_NP_REPLY pReply, char *vardata)
|
static void RPCSS_ServerProcessMessage(PRPCSS_NP_MESSAGE pMsg, PRPCSS_NP_REPLY pReply, char *vardata)
|
||||||
{
|
{
|
||||||
WINE_TRACE("\n");
|
WINE_TRACE("\n");
|
||||||
|
ZeroMemory(pReply, sizeof(*pReply));
|
||||||
switch (pMsg->message_type) {
|
switch (pMsg->message_type) {
|
||||||
case RPCSS_NP_MESSAGE_TYPEID_RANMSG:
|
case RPCSS_NP_MESSAGE_TYPEID_RANMSG:
|
||||||
RPCSS_ServerProcessRANMessage(pMsg, pReply);
|
RPCSS_ServerProcessRANMessage(pMsg, pReply);
|
||||||
|
@ -436,6 +437,7 @@ BOOL RPCSS_BecomePipeServer(void)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((client_handle = RPCSS_NPConnect()) != INVALID_HANDLE_VALUE) {
|
if ((client_handle = RPCSS_NPConnect()) != INVALID_HANDLE_VALUE) {
|
||||||
|
ZeroMemory(&msg, sizeof(msg));
|
||||||
msg.message_type = RPCSS_NP_MESSAGE_TYPEID_RANMSG;
|
msg.message_type = RPCSS_NP_MESSAGE_TYPEID_RANMSG;
|
||||||
msg.message.ranmsg.timeout = 1000;
|
msg.message.ranmsg.timeout = 1000;
|
||||||
msg.vardata_payload_size = 0;
|
msg.vardata_payload_size = 0;
|
||||||
|
|
Loading…
Reference in New Issue