This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH setup 2/4] Fully initialize PROPSHEETPAGE
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Mon, 12 Dec 2016 13:29:27 +0000
- Subject: [PATCH setup 2/4] Fully initialize PROPSHEETPAGE
- Authentication-results: sourceware.org; auth=none
- References: <20161212132929.58904-1-jon.turney@dronecode.org.uk>
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