msi: Replaced msi_free() by LocalAlloc() since ConvertSidToStringSidW uses LocalAlloc().
Spotted by Christoph von Wittich <Christoph@ApiViewer.de>.
diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c
index bf06d9d..ac89186 100644
--- a/dlls/msi/registry.c
+++ b/dlls/msi/registry.c
@@ -662,7 +662,7 @@
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
- msi_free(usersid);
+ LocalFree(usersid);
return rc;
}
@@ -739,7 +739,7 @@
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
- msi_free(usersid);
+ LocalFree(usersid);
return rc;
}
@@ -764,7 +764,7 @@
sprintfW(keypath, szUserDataComp_fmt, usersid, comp);
- msi_free(usersid);
+ LocalFree(usersid);
return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath);
}
@@ -794,7 +794,7 @@
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
- msi_free(usersid);
+ LocalFree(usersid);
return rc;
}
@@ -824,7 +824,7 @@
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
- msi_free(usersid);
+ LocalFree(usersid);
return rc;
}
@@ -849,7 +849,7 @@
sprintfW(keypath, szUserDataProd_fmt, usersid, squished_pc);
- msi_free(usersid);
+ LocalFree(usersid);
return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath);
}
@@ -1039,7 +1039,7 @@
}
sprintfW(keypath, szInstaller_LocalManagedProd_fmt, usersid, squished_pc);
- msi_free(usersid);
+ LocalFree(usersid);
if (create)
return RegCreateKeyW(HKEY_LOCAL_MACHINE, keypath, key);