mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
msi: MsiSourceListEnumMediaDisksW: free original string, not substring.
This commit is contained in:
parent
8f7f203649
commit
ecfa0fbcea
1 changed files with 4 additions and 5 deletions
|
@ -304,15 +304,14 @@ UINT WINAPI MsiSourceListEnumMediaDisksW(LPCWSTR szProductCodeOrPatchCode,
|
|||
|
||||
if (pcchDiskPrompt)
|
||||
{
|
||||
data = ptr;
|
||||
if (!*data)
|
||||
data++;
|
||||
if (!*ptr)
|
||||
ptr++;
|
||||
|
||||
size = lstrlenW(data);
|
||||
size = lstrlenW(ptr);
|
||||
if (size >= *pcchDiskPrompt)
|
||||
r = ERROR_MORE_DATA;
|
||||
else if (szDiskPrompt)
|
||||
lstrcpyW(szDiskPrompt, data);
|
||||
lstrcpyW(szDiskPrompt, ptr);
|
||||
|
||||
*pcchDiskPrompt = size;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue