Skip to content

Commit a374d25

Browse files
authored
clipboard: fix notice in clipboard_windows.c.v (#20733)
1 parent e48e28d commit a374d25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vlib/clipboard/clipboard_windows.c.v

+2-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ fn new_clipboard() &Clipboard {
9393
cb_size: sizeof(WndClassEx)
9494
lpfn_wnd_proc: voidptr(&C.DefWindowProc)
9595
lpsz_class_name: class_name.to_wide()
96-
lpsz_menu_name: 0
97-
h_icon_sm: 0
96+
lpsz_menu_name: unsafe { 0 }
97+
h_icon_sm: unsafe { 0 }
9898
}
9999
if C.RegisterClassEx(voidptr(&wndclass)) == 0
100100
&& C.GetLastError() != u32(C.ERROR_CLASS_ALREADY_EXISTS) {

0 commit comments

Comments
 (0)