Alexandre Julliard : oleaut32: Don't copy uninitialized data.
Alexandre Julliard
julliard at winehq.org
Mon Aug 28 14:05:17 CDT 2017
Module: wine
Branch: master
Commit: 8da116d0b7c1c8150b1f31210b19153cf376dd1f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8da116d0b7c1c8150b1f31210b19153cf376dd1f
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Aug 28 18:12:54 2017 +0200
oleaut32: Don't copy uninitialized data.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/oleaut32/tmarshal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c
index 5fd1fdd..e0e1e08 100644
--- a/dlls/oleaut32/tmarshal.c
+++ b/dlls/oleaut32/tmarshal.c
@@ -1079,7 +1079,7 @@ deserialize_param(
DWORD x;
hres = xbuf_get(buf,(LPBYTE)&x,sizeof(DWORD));
if (hres) ERR("Failed to read integer 4 byte\n");
- memcpy(arg,&x,2);
+ else memcpy(arg,&x,2);
}
if (debugout) TRACE_(olerelay)("%04x",*arg & 0xffff);
return hres;
@@ -1089,7 +1089,7 @@ deserialize_param(
DWORD x;
hres = xbuf_get(buf,(LPBYTE)&x,sizeof(DWORD));
if (hres) ERR("Failed to read integer 4 byte\n");
- memcpy(arg,&x,1);
+ else memcpy(arg,&x,1);
}
if (debugout) TRACE_(olerelay)("%02x",*arg & 0xff);
return hres;
More information about the wine-cvs
mailing list