diff --git a/desktop-src/comp_swapchain/comp-swapchain-examples.md b/desktop-src/comp_swapchain/comp-swapchain-examples.md index 9f8284721ab..d42858f46f7 100644 --- a/desktop-src/comp_swapchain/comp-swapchain-examples.md +++ b/desktop-src/comp_swapchain/comp-swapchain-examples.md @@ -1818,7 +1818,7 @@ void DXGIOrPresentationAPIExample() // Present 50 times. constexpr UINT numPresents = 50; - for (UINT i = 0; i < 50; i++) + for (UINT i = 0; i < numPresents; i++) { // Advance our present time 1/10th of a second in the future. presentTime.value += 1'000'000;