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
2e4954eb
Commit
2e4954eb
authored
Dec 27, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Basic tests for SHCreateSessionKey().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3b48ba6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
shellole.c
dlls/shell32/tests/shellole.c
+33
-0
No files found.
dlls/shell32/tests/shellole.c
View file @
2e4954eb
...
...
@@ -75,6 +75,7 @@ static HRESULT (WINAPI *pSHPropStgReadMultiple)(IPropertyStorage*, UINT,
static
HRESULT
(
WINAPI
*
pSHPropStgWriteMultiple
)(
IPropertyStorage
*
,
UINT
*
,
ULONG
,
const
PROPSPEC
*
,
PROPVARIANT
*
,
PROPID
);
static
HRESULT
(
WINAPI
*
pSHCreateQueryCancelAutoPlayMoniker
)(
IMoniker
**
);
static
HRESULT
(
WINAPI
*
pSHCreateSessionKey
)(
REGSAM
,
HKEY
*
);
static
void
init
(
void
)
{
...
...
@@ -84,6 +85,7 @@ static void init(void)
pSHPropStgReadMultiple
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHPropStgReadMultiple"
);
pSHPropStgWriteMultiple
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHPropStgWriteMultiple"
);
pSHCreateQueryCancelAutoPlayMoniker
=
(
void
*
)
GetProcAddress
(
hmod
,
"SHCreateQueryCancelAutoPlayMoniker"
);
pSHCreateSessionKey
=
(
void
*
)
GetProcAddress
(
hmod
,
(
char
*
)
723
);
}
static
HRESULT
WINAPI
PropertyStorage_QueryInterface
(
IPropertyStorage
*
This
,
...
...
@@ -858,6 +860,36 @@ static void test_DragQueryFile(void)
}
#undef DROPTEST_FILENAME
static
void
test_SHCreateSessionKey
(
void
)
{
HKEY
hkey
,
hkey2
;
HRESULT
hr
;
if
(
!
pSHCreateSessionKey
)
{
skip
(
"SHCreateSessionKey is not implemented
\n
"
);
return
;
}
if
(
0
)
/* crashes on native */
hr
=
pSHCreateSessionKey
(
KEY_READ
,
NULL
);
hkey
=
(
HKEY
)
0xdeadbeef
;
hr
=
pSHCreateSessionKey
(
0
,
&
hkey
);
ok
(
hr
==
E_ACCESSDENIED
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hkey
==
NULL
,
"got %p
\n
"
,
hkey
);
hr
=
pSHCreateSessionKey
(
KEY_READ
,
&
hkey
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
pSHCreateSessionKey
(
KEY_READ
,
&
hkey2
);
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
ok
(
hkey
!=
hkey2
,
"got %p, %p
\n
"
,
hkey
,
hkey2
);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey2
);
}
START_TEST
(
shellole
)
{
init
();
...
...
@@ -865,4 +897,5 @@ START_TEST(shellole)
test_SHPropStg_functions
();
test_SHCreateQueryCancelAutoPlayMoniker
();
test_DragQueryFile
();
test_SHCreateSessionKey
();
}
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