From 8072839973440c6e57f6ad9c5ce602a07868efe6 Mon Sep 17 00:00:00 2001 From: Andrew Gutekanst Date: Sat, 19 Mar 2022 18:06:34 -0400 Subject: [PATCH] gpu: update GetModuleHandleW usage in examples --- gpu/examples/sample_utils.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu/examples/sample_utils.zig b/gpu/examples/sample_utils.zig index 4c442bfa..856e72b0 100644 --- a/gpu/examples/sample_utils.zig +++ b/gpu/examples/sample_utils.zig @@ -174,7 +174,7 @@ pub fn createSurfaceForWindow( const descriptor = if (glfw_options.win32) gpu.Surface.Descriptor{ .windows_hwnd = .{ .label = "basic surface", - .hinstance = std.os.windows.kernel32.GetModuleHandleW(null), + .hinstance = std.os.windows.kernel32.GetModuleHandleW(null).?, .hwnd = glfw_native.getWin32Window(window), }, } else if (glfw_options.x11) gpu.Surface.Descriptor{