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
360cf273
Commit
360cf273
authored
Jul 06, 2015
by
Thomas Faber
Committed by
Alexandre Julliard
Jul 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Test that shell view windows reference their shell view.
parent
9375b06c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
shlview.c
dlls/shell32/tests/shlview.c
+20
-1
No files found.
dlls/shell32/tests/shlview.c
View file @
360cf273
...
...
@@ -634,6 +634,7 @@ static void test_CreateViewWindow(void)
IDropTarget
*
dt
;
HRESULT
hr
;
RECT
r
=
{
0
};
ULONG
ref1
,
ref2
;
hr
=
SHGetDesktopFolder
(
&
desktop
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
...
...
@@ -676,11 +677,29 @@ if (0)
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
IDropTarget_Release
(
dt
);
IShellView_AddRef
(
view
);
ref1
=
IShellView_Release
(
view
);
hr
=
IShellView_DestroyViewWindow
(
view
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
ok
(
!
IsWindow
(
hwnd_view
),
"hwnd %p still valid
\n
"
,
hwnd_view
);
ref2
=
IShellView_Release
(
view
);
ok
(
ref1
>
ref2
,
"expected %u > %u
\n
"
,
ref1
,
ref2
);
ref1
=
ref2
;
/* Show that releasing the shell view does not destroy the window */
hr
=
IShellFolder_CreateViewObject
(
desktop
,
NULL
,
&
IID_IShellView
,
(
void
**
)
&
view
);
ok
(
hr
==
S_OK
,
"got (0x%08x)
\n
"
,
hr
);
hwnd_view
=
NULL
;
hr
=
IShellView_CreateViewWindow
(
view
,
NULL
,
&
settings
,
&
test_shellbrowser
,
&
r
,
&
hwnd_view
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
S_FALSE
),
"got (0x%08x)
\n
"
,
hr
);
ok
(
hwnd_view
!=
NULL
,
"got %p
\n
"
,
hwnd_view
);
ok
(
IsWindow
(
hwnd_view
),
"hwnd %p still valid
\n
"
,
hwnd_view
);
ref2
=
IShellView_Release
(
view
);
ok
(
ref2
!=
0
,
"ref2 = %u
\n
"
,
ref2
);
ok
(
ref2
>
ref1
,
"expected %u > %u
\n
"
,
ref2
,
ref1
);
ok
(
IsWindow
(
hwnd_view
),
"hwnd %p still valid
\n
"
,
hwnd_view
);
DestroyWindow
(
hwnd_view
);
IShellView_Release
(
view
);
IShellFolder_Release
(
desktop
);
}
...
...
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