Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0a953f11
Commit
0a953f11
authored
Dec 14, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Release window DCs consistently.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
224d284f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletion
+6
-1
cursoricon.c
dlls/user32/tests/cursoricon.c
+2
-0
static.c
dlls/user32/tests/static.c
+1
-0
sysparams.c
dlls/user32/tests/sysparams.c
+2
-1
win.c
dlls/user32/tests/win.c
+1
-0
No files found.
dlls/user32/tests/cursoricon.c
View file @
0a953f11
...
...
@@ -1070,6 +1070,8 @@ static void test_LoadImageBitmap(const char * test_desc, HBITMAP hbm)
ok
(
ret
==
bm
.
bmHeight
,
"%s: %d lines were converted, not %d
\n
"
,
test_desc
,
ret
,
bm
.
bmHeight
);
ok
(
color_match
(
pixel
,
0x00ffffff
),
"%s: Pixel is 0x%08x
\n
"
,
test_desc
,
pixel
);
ReleaseDC
(
NULL
,
hdc
);
}
static
void
test_LoadImageFile
(
const
char
*
test_desc
,
const
unsigned
char
*
image_data
,
...
...
dlls/user32/tests/static.c
View file @
0a953f11
...
...
@@ -99,6 +99,7 @@ static void test_updates(int style, int flags)
HDC
hdc
=
GetDC
(
hStatic
);
COLORREF
colour
=
GetPixel
(
hdc
,
10
,
10
);
ok
(
colour
!=
0
,
"pixel should NOT be painted black!
\n
"
);
ReleaseDC
(
hStatic
,
hdc
);
}
if
(
style
!=
SS_ETCHEDHORZ
&&
style
!=
SS_ETCHEDVERT
)
exp
=
4
;
...
...
dlls/user32/tests/sysparams.c
View file @
0a953f11
...
...
@@ -2918,7 +2918,8 @@ static void test_GetSystemMetrics( void)
trace
(
"Captionfontchar width %d MenuFont %d,%d CaptionWidth from registry: %d screen %d,%d
\n
"
,
avcwCaption
,
tmMenuFont
.
tmHeight
,
tmMenuFont
.
tmExternalLeading
,
CaptionWidthfromreg
,
screen
.
cx
,
screen
.
cy
);
}
ReleaseDC
(
0
,
hdc
);
DeleteDC
(
hdc
);
}
static
void
test_EnumDisplaySettings
(
void
)
...
...
dlls/user32/tests/win.c
View file @
0a953f11
...
...
@@ -5242,6 +5242,7 @@ static void test_scrolldc( HWND parent)
if
(
winetest_debug
>
0
)
dump_region
(
hrgn
);
/* clean up */
ReleaseDC
(
hwnd1
,
hdc
);
DeleteObject
(
hrgn
);
DeleteObject
(
exprgn
);
DeleteObject
(
tmprgn
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment