msi: fix ComputerName property
Daniel Jeliński
djelinski1 at gmail.com
Fri May 3 13:58:13 CDT 2013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130503/278aa400/attachment.html>
-------------- next part --------------
From d60acd252a8307515d2c02ebe043b2d91660ae97 Mon Sep 17 00:00:00 2001
From: Daniel Jelinski <djelinski1 at gmail.com>
Date: Fri, 3 May 2013 20:55:13 +0200
Subject: [PATCH] msi: fix ComputerName property
apparently second call to GetComputerName already cuts length by one.
Fixes next SQL Server installer failure.
---
dlls/msi/package.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/package.c b/dlls/msi/package.c
index f7cc908..74f19ac 100644
--- a/dlls/msi/package.c
+++ b/dlls/msi/package.c
@@ -1020,7 +1020,7 @@ static VOID set_installer_properties(MSIPACKAGE *package)
if ((computername = msi_alloc( len * sizeof(WCHAR) )))
{
if (GetComputerNameW( computername, &len ))
- msi_set_property( package->db, szComputerName, computername, len - 1 );
+ msi_set_property( package->db, szComputerName, computername, len );
msi_free( computername );
}
}
--
1.7.5.4
More information about the wine-patches
mailing list