From 3183ad65d27d1ba4de255400277dfd46044d2ab8 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Wed, 27 Feb 2008 16:47:55 +0000 Subject: [PATCH] msi: Fix buffer size calculation in build_default_format. --- dlls/msi/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/format.c b/dlls/msi/format.c index 8c5b246a095..f58f51745b0 100644 --- a/dlls/msi/format.c +++ b/dlls/msi/format.c @@ -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)