From 9d3af7547bb790d39157dd36dfa862a1abf47beb Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 8 Nov 2021 15:24:46 -0600 Subject: Go back to thmutil not interfering with wixstdba controls. --- src/samples/thmviewer/display.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/samples') diff --git a/src/samples/thmviewer/display.cpp b/src/samples/thmviewer/display.cpp index f40b50b5..444c6cfb 100644 --- a/src/samples/thmviewer/display.cpp +++ b/src/samples/thmviewer/display.cpp @@ -327,9 +327,10 @@ static BOOL DisplayOnThmLoadedControl( } else if (THEME_CONTROL_TYPE_PROGRESSBAR == pControl->type) { - DWORD dwId = ::SetTimer(pTheme->hwndParent, reinterpret_cast(pControl), 500, NULL); - dwId = dwId; // prevents warning in "ship" build. - Assert(dwId == pControl->wId); + UINT_PTR timerId = reinterpret_cast(pControl); + UINT_PTR id = ::SetTimer(pTheme->hwndParent, timerId, 500, NULL); + id = id; // prevents warning in "ship" build. + Assert(id == timerId); } LExit: -- cgit v1.2.3-55-g6feb