Skip to content

Commit 8ae7818

Browse files
authored
Change LPPAINTSTRUCT to *const PAINTSTRUCT (#32)
1 parent 1b8bb75 commit 8ae7818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book_src/opening_a_window/win32.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ Sounds easy enough to do.
13741374
#[link(name = "User32")]
13751375
extern "system" {
13761376
/// [`BeginPaint`](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-beginpaint)
1377-
pub fn BeginPaint(hWnd: HWND, lpPaint: LPPAINTSTRUCT) -> HDC;
1377+
pub fn BeginPaint(hWnd: HWND, lpPaint: *const PAINTSTRUCT) -> HDC;
13781378

13791379
/// [`FillRect`](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-fillrect)
13801380
pub fn FillRect(hDC: HDC, lprc: *const RECT, hbr: HBRUSH) -> c_int;

0 commit comments

Comments
 (0)