msi: Replaced msi_free() by LocalAlloc() since ConvertSidToStringSidW uses LocalAlloc().

Spotted by Christoph von Wittich <Christoph@ApiViewer.de>.
This commit is contained in:
Marcus Meissner 2008-01-20 21:11:19 +01:00 committed by Alexandre Julliard
parent a63664f1ec
commit 943ac9795b
1 changed files with 7 additions and 7 deletions

View File

@ -662,7 +662,7 @@ UINT MSIREG_OpenUserDataFeaturesKey(LPCWSTR szProduct, HKEY *key, BOOL create)
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
msi_free(usersid);
LocalFree(usersid);
return rc;
}
@ -739,7 +739,7 @@ UINT MSIREG_OpenUserDataComponentKey(LPCWSTR szComponent, HKEY *key, BOOL create
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
msi_free(usersid);
LocalFree(usersid);
return rc;
}
@ -764,7 +764,7 @@ UINT MSIREG_DeleteUserDataComponentKey(LPCWSTR szComponent)
sprintfW(keypath, szUserDataComp_fmt, usersid, comp);
msi_free(usersid);
LocalFree(usersid);
return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath);
}
@ -794,7 +794,7 @@ UINT MSIREG_OpenUserDataProductKey(LPCWSTR szProduct, HKEY *key, BOOL create)
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
msi_free(usersid);
LocalFree(usersid);
return rc;
}
@ -824,7 +824,7 @@ UINT MSIREG_OpenInstallPropertiesKey(LPCWSTR szProduct, HKEY *key, BOOL create)
else
rc = RegOpenKeyW(HKEY_LOCAL_MACHINE, keypath, key);
msi_free(usersid);
LocalFree(usersid);
return rc;
}
@ -849,7 +849,7 @@ UINT MSIREG_DeleteUserDataProductKey(LPCWSTR szProduct)
sprintfW(keypath, szUserDataProd_fmt, usersid, squished_pc);
msi_free(usersid);
LocalFree(usersid);
return RegDeleteTreeW(HKEY_LOCAL_MACHINE, keypath);
}
@ -1039,7 +1039,7 @@ UINT MSIREG_OpenLocalManagedProductKey(LPCWSTR szProductCode, HKEY *key, BOOL cr
}
sprintfW(keypath, szInstaller_LocalManagedProd_fmt, usersid, squished_pc);
msi_free(usersid);
LocalFree(usersid);
if (create)
return RegCreateKeyW(HKEY_LOCAL_MACHINE, keypath, key);