From 8c04add139d9279889c4a2bc5f9002d36c4b3bf4 Mon Sep 17 00:00:00 2001 From: winesync Date: Sat, 12 Mar 2022 15:12:00 +0100 Subject: [PATCH] [WINESYNC] msi: Avoid returning an uninitialized variable. Signed-off-by: Zebediah Figura Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard wine commit id 859f455cb95a37e11f1187731be530fc9b48da8a by Zebediah Figura --- dll/win32/msi/record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/msi/record.c b/dll/win32/msi/record.c index 58040468993..a7d55888a9d 100644 --- a/dll/win32/msi/record.c +++ b/dll/win32/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;