mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
msi: Fix buffer size calculation in build_default_format.
This commit is contained in:
parent
03e466b837
commit
3183ad65d2
@ -346,7 +346,7 @@ static LPWSTR build_default_format(const MSIRECORD* record)
|
||||
sprintfW(index, fmt_index, i);
|
||||
str = MSI_RecordGetString(record, i);
|
||||
len = (str) ? lstrlenW(str) : 0;
|
||||
len += (sizeof(fmt_null) - 3) + lstrlenW(index);
|
||||
len += (sizeof(fmt_null)/sizeof(fmt_null[0]) - 3) + lstrlenW(index);
|
||||
size += len;
|
||||
|
||||
if (len > max_len)
|
||||
|
Loading…
Reference in New Issue
Block a user