Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f317d6b3
Commit
f317d6b3
authored
Aug 25, 2010
by
Louis Lenders
Committed by
Alexandre Julliard
Aug 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree/tests: Add a few tests for GetCORSytemDirectory.
parent
c74f7496
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
3 deletions
+23
-3
mscoree.c
dlls/mscoree/tests/mscoree.c
+23
-3
No files found.
dlls/mscoree/tests/mscoree.c
View file @
f317d6b3
...
...
@@ -21,6 +21,7 @@
static
HMODULE
hmscoree
;
static
HRESULT
(
WINAPI
*
pGetCORVersion
)(
LPWSTR
,
DWORD
,
DWORD
*
);
static
HRESULT
(
WINAPI
*
pGetCORSystemDirectory
)(
LPWSTR
,
DWORD
,
DWORD
*
);
static
BOOL
init_functionpointers
(
void
)
{
...
...
@@ -33,8 +34,8 @@ static BOOL init_functionpointers(void)
}
pGetCORVersion
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"GetCORVersion"
);
if
(
!
pGetCORVersion
)
pGetCORSystemDirectory
=
(
void
*
)
GetProcAddress
(
hmscoree
,
"GetCORSystemDirectory"
);
if
(
!
pGetCORVersion
||
!
pGetCORSystemDirectory
)
{
win_skip
(
"functions not available
\n
"
);
FreeLibrary
(
hmscoree
);
...
...
@@ -47,7 +48,8 @@ static BOOL init_functionpointers(void)
static
void
test_versioninfo
(
void
)
{
WCHAR
version
[
MAX_PATH
];
DWORD
size
;
WCHAR
path
[
MAX_PATH
];
DWORD
size
,
path_len
;
HRESULT
hr
;
hr
=
pGetCORVersion
(
NULL
,
MAX_PATH
,
&
size
);
...
...
@@ -60,6 +62,24 @@ static void test_versioninfo(void)
ok
(
hr
==
S_OK
,
"GetCORVersion returned %08x
\n
"
,
hr
);
trace
(
"latest installed .net runtime: %s
\n
"
,
wine_dbgstr_w
(
version
));
hr
=
pGetCORSystemDirectory
(
path
,
MAX_PATH
,
&
size
);
ok
(
hr
==
S_OK
,
"GetCORSystemDirectory returned %08x
\n
"
,
hr
);
/* size includes terminating null-character */
ok
(
size
==
(
lstrlenW
(
path
)
+
1
),
"size is %d instead of %d
\n
"
,
size
,
(
lstrlenW
(
path
)
+
1
));
path_len
=
size
;
hr
=
pGetCORSystemDirectory
(
path
,
path_len
-
1
,
&
size
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
),
"GetCORSystemDirectory returned %08x
\n
"
,
hr
);
hr
=
pGetCORSystemDirectory
(
NULL
,
MAX_PATH
,
&
size
);
todo_wine
ok
(
hr
==
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
),
"GetCORSystemDirectory returned %08x
\n
"
,
hr
);
hr
=
pGetCORSystemDirectory
(
path
,
MAX_PATH
,
NULL
);
ok
(
hr
==
E_POINTER
,
"GetCORSystemDirectory returned %08x
\n
"
,
hr
);
trace
(
"latest installed .net installed in directory: %s
\n
"
,
wine_dbgstr_w
(
path
));
}
START_TEST
(
mscoree
)
...
...
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