[PATCH] comctl32/propsheet: Double size of a template buffer passed to PSCB_PRECREATE
Nikolay Sivov
nsivov at codeweavers.com
Thu Jan 12 18:45:15 CST 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
Fixes https://bugs.winehq.org/show_bug.cgi?id=33859
This is what happens on Windows, callback is called with block twice as large
as dialog template resource.
dlls/comctl32/propsheet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 860084414b..1809b8647d 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -639,7 +639,7 @@ static INT_PTR PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
*/
resSize = SizeofResource(COMCTL32_hModule, hRes);
- temp = Alloc(resSize);
+ temp = Alloc(2 * resSize);
if (!temp)
return -1;
--
2.11.0
More information about the wine-patches
mailing list