[PATCH setup 2/4] Fully initialize PROPSHEETPAGE
Jon Turney
jon.turney@dronecode.org.uk
Mon Dec 12 13:30:00 GMT 2016
Avoids uninitilized data access errors reported by Dr.Memory
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
---
proppage.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/proppage.cc b/proppage.cc
index c03e5f7..d4d2926 100644
--- a/proppage.cc
+++ b/proppage.cc
@@ -67,6 +67,7 @@ PropertyPage::Create (DLGPROC dlgproc,
BOOL (*cproc) (HWND h, int id, HWND hwndctl,
UINT code), int TemplateID)
{
+ memset(&psp, 0, sizeof (PROPSHEETPAGE));
psp.dwSize = sizeof (PROPSHEETPAGE);
psp.dwFlags = 0;
psp.hInstance = GetInstance ();
--
2.8.3
More information about the Cygwin-apps
mailing list