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
26f753ae
Commit
26f753ae
authored
Feb 04, 2011
by
Joris Huizer
Committed by
Alexandre Julliard
Feb 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Don't test function directly when reporting GetLastError().
parent
fb296d12
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
dde.c
dlls/user32/tests/dde.c
+5
-2
menu.c
dlls/user32/tests/menu.c
+5
-2
No files found.
dlls/user32/tests/dde.c
View file @
26f753ae
...
...
@@ -1571,6 +1571,7 @@ static void test_dde_aw_transaction( BOOL client_unicode, BOOL server_unicode )
CONVINFO
info
;
HDDEDATA
hdata
;
BOOL
conv_unicode
=
client_unicode
;
BOOL
got
;
static
char
test_cmd
[]
=
"test dde command"
;
if
(
!
(
hwnd_server
=
create_dde_server
(
server_unicode
)))
return
;
...
...
@@ -1709,7 +1710,8 @@ todo_wine {
ok
(
err
==
DMLERR_NOTPROCESSED
,
"DdeClientTransaction returned error %x
\n
"
,
err
);
}
ok
(
DdeDisconnect
(
hconv
),
"DdeDisconnect error %x
\n
"
,
DdeGetLastError
(
dde_inst
));
got
=
DdeDisconnect
(
hconv
);
ok
(
got
,
"DdeDisconnect error %x
\n
"
,
DdeGetLastError
(
dde_inst
));
info
.
cb
=
sizeof
(
info
);
ret
=
DdeQueryConvInfo
(
hconv
,
QID_SYNC
,
&
info
);
...
...
@@ -1719,7 +1721,8 @@ todo_wine {
ok
(
err
==
DMLERR_INVALIDPARAMETER
,
"wrong dde error %x
\n
"
,
err
);
}
ok
(
DdeFreeStringHandle
(
dde_inst
,
hsz_server
),
"DdeFreeStringHandle error %x
\n
"
,
DdeGetLastError
(
dde_inst
));
got
=
DdeFreeStringHandle
(
dde_inst
,
hsz_server
);
ok
(
got
,
"DdeFreeStringHandle error %x
\n
"
,
DdeGetLastError
(
dde_inst
));
/* This call hangs on win2k SP4 and XP SP1.
DdeUninitialize(dde_inst);*/
...
...
dlls/user32/tests/menu.c
View file @
26f753ae
...
...
@@ -660,6 +660,7 @@ static void test_menu_bmp_and_string(void)
MENUINFO
mi
=
{
sizeof
(
MENUINFO
)};
MENUITEMINFOA
mii
=
{
sizeof
(
MENUITEMINFOA
)};
int
count
,
szidx
,
txtidx
,
bmpidx
,
hassub
,
mnuopt
,
ispop
;
BOOL
got
;
if
(
!
pGetMenuInfo
)
{
...
...
@@ -681,12 +682,14 @@ static void test_menu_bmp_and_string(void)
ok
(
hsysmenu
!=
NULL
,
"GetSystemMenu failed with error %d
\n
"
,
GetLastError
());
mi
.
fMask
=
MIM_STYLE
;
mi
.
dwStyle
=
0
;
ok
(
pGetMenuInfo
(
hsysmenu
,
&
mi
),
"GetMenuInfo failed gle=%d
\n
"
,
GetLastError
());
got
=
pGetMenuInfo
(
hsysmenu
,
&
mi
);
ok
(
got
,
"GetMenuInfo failed gle=%d
\n
"
,
GetLastError
());
ok
(
MNS_CHECKORBMP
==
mi
.
dwStyle
,
"System Menu Style is %08x, without the bit %08x
\n
"
,
mi
.
dwStyle
,
MNS_CHECKORBMP
);
mii
.
fMask
=
MIIM_BITMAP
;
mii
.
hbmpItem
=
NULL
;
ok
(
GetMenuItemInfoA
(
hsysmenu
,
SC_CLOSE
,
FALSE
,
&
mii
),
"GetMenuItemInfoA failed gle=%d
\n
"
,
GetLastError
());
got
=
GetMenuItemInfoA
(
hsysmenu
,
SC_CLOSE
,
FALSE
,
&
mii
);
ok
(
got
,
"GetMenuItemInfoA failed gle=%d
\n
"
,
GetLastError
());
ok
(
HBMMENU_POPUP_CLOSE
==
mii
.
hbmpItem
,
"Item info did not get the right hbitmap: got %p expected %p
\n
"
,
mii
.
hbmpItem
,
HBMMENU_POPUP_CLOSE
);
...
...
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