[Bug 5768] Adobe Premier Pro 2 trial fails to install
wine-bugs at winehq.org
Thu Jan 11 20:30:48 CST 2007
------- Additional Comments From mike at codeweavers.com 2007-11-01 20:30 -------
The "AMT_WriteRemoveFileEntry" action problem is a bug in MsiGetPropertyA that
we don't emulate.
Adobe products use MsiGetPropertyA in custom actions to fetch the value of
various properties like this:
char *get_prop( const char *name )
/* sz is meant to be the size in TCHARs excluding nul */
r = MsiGetPropertyA( handle, name, NULL, &sz);
if (r != ERROR_SUCCESS || sz == 0) return NULL;
/* sz would be too short here.... */
str = HeapAlloc(GetProcessHeap(), 0, sz);
MsiGetPropertyA( handle, name, NULL, &sz);
if (r != ERROR_SUCCESS || sz == 0) goto error;
/* log a message and fail */
The above code works in the installer, but we have a number of test cases
showing that it shouldn't.
The code is run in the context of a custom action. After writing a test case
for the above code in a custom action, the problem was apparent.
MsiGetPropertyA has a bug in this case; it returns the size of the wide string
eg. if the property value is "Photoshop.dll" it returns 26, not 13, so the above
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the wine-bugs