From 3d01cb2d30134fff113e6b72b32730272fdad040 Mon Sep 17 00:00:00 2001 From: Martin Askestad Date: Fri, 26 May 2023 19:34:11 +0200 Subject: [PATCH] Fix sample --- crates/samples/windows/enum_windows/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/samples/windows/enum_windows/src/main.rs b/crates/samples/windows/enum_windows/src/main.rs index 7927758be1..7087e1f57e 100644 --- a/crates/samples/windows/enum_windows/src/main.rs +++ b/crates/samples/windows/enum_windows/src/main.rs @@ -1,7 +1,8 @@ use windows::{Win32::Foundation::*, Win32::UI::WindowsAndMessaging::*}; fn main() -> windows::core::Result<()> { - unsafe { EnumWindows(Some(enum_window), LPARAM(0)) } + unsafe { EnumWindows(Some(enum_window), LPARAM(0)) }; + Ok(()) } extern "system" fn enum_window(window: HWND, _: LPARAM) -> BOOL {