https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8c04add139d9279889c4a…
commit 8c04add139d9279889c4a2bc5f9002d36c4b3bf4
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sat Mar 12 15:12:00 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:27:39 2022 +0100
[WINESYNC] msi: Avoid returning an uninitialized variable.
Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com>
Signed-off-by: Hans Leidekker <hans(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 859f455cb95a37e11f1187731be530fc9b48da8a by Zebediah Figura
<z.figura12(a)gmail.com>
---
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;