[PATCH] msi: Avoid returning an uninitialized variable.
Zebediah Figura
z.figura12 at gmail.com
Sun Apr 22 09:53:10 CDT 2018
Fixes https://bugs.winehq.org/show_bug.cgi?id=45044. Thanks to Anastasius
Focht for reporting and thoroughly debugging this issue.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/msi/record.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msi/record.c b/dlls/msi/record.c
index 5804046..a7d5588 100644
--- a/dlls/msi/record.c
+++ b/dlls/msi/record.c
@@ -1059,7 +1059,7 @@ UINT copy_remote_record(const struct wire_record *in, MSIHANDLE out)
{
MSIRECORD *rec;
unsigned int i;
- UINT r;
+ UINT r = ERROR_SUCCESS;
if (!(rec = msihandle2msiinfo(out, MSIHANDLETYPE_RECORD)))
return ERROR_INVALID_HANDLE;
--
2.7.4
More information about the wine-devel
mailing list