aboutsummaryrefslogtreecommitdiff
path: root/src/samples
diff options
context:
space:
mode:
Diffstat (limited to 'src/samples')
-rw-r--r--src/samples/thmviewer/display.cpp7
1 files changed, 4 insertions, 3 deletions
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(
327 } 327 }
328 else if (THEME_CONTROL_TYPE_PROGRESSBAR == pControl->type) 328 else if (THEME_CONTROL_TYPE_PROGRESSBAR == pControl->type)
329 { 329 {
330 DWORD dwId = ::SetTimer(pTheme->hwndParent, reinterpret_cast<UINT_PTR>(pControl), 500, NULL); 330 UINT_PTR timerId = reinterpret_cast<UINT_PTR>(pControl);
331 dwId = dwId; // prevents warning in "ship" build. 331 UINT_PTR id = ::SetTimer(pTheme->hwndParent, timerId, 500, NULL);
332 Assert(dwId == pControl->wId); 332 id = id; // prevents warning in "ship" build.
333 Assert(id == timerId);
333 } 334 }
334 335
335LExit: 336LExit: