Skip to content

Commit c0a9e5c

Browse files
committed
(#3) Fixed struct initialization in Windows implementation
1 parent cb09c13 commit c0a9e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/highlightwindow_win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void showHighlightWindow(int x, int y, int width, int height, int duration, floa
1414
// Register the window class.
1515
const wchar_t CLASS_NAME[] = L"Highlight Window Class";
1616

17-
WNDCLASS wc = { };
17+
WNDCLASS wc = {0};
1818

1919
wc.lpfnWndProc = WindowProc;
2020
wc.hInstance = NULL;
@@ -47,7 +47,7 @@ void showHighlightWindow(int x, int y, int width, int height, int duration, floa
4747
SetTimer(hwnd, ID_CLOSE_TIMER, duration * 1000, NULL);
4848
ShowWindow(hwnd, 1);
4949

50-
MSG msg = { };
50+
MSG msg = {0};
5151
while (GetMessage(&msg, NULL, 0, 0)) {
5252
TranslateMessage(&msg);
5353
DispatchMessage(&msg);

0 commit comments

Comments
 (0)