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
a96db3c3
Commit
a96db3c3
authored
Feb 02, 2010
by
Lei Zhang
Committed by
Alexandre Julliard
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userenv: Add a small test for DestroyEnvironmentBlock.
parent
823edff3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
userenv.c
dlls/userenv/tests/userenv.c
+6
-0
userenv.h
include/userenv.h
+1
-0
No files found.
dlls/userenv/tests/userenv.c
View file @
a96db3c3
...
...
@@ -197,6 +197,12 @@ static void test_create_env(void)
r
=
get_env
(
env
[
3
],
"WINE_XYZZY"
,
&
st
);
expect
(
TRUE
,
r
);
if
(
r
)
HeapFree
(
GetProcessHeap
(),
0
,
st
);
for
(
i
=
0
;
i
<
sizeof
(
env
)
/
sizeof
(
env
[
0
]);
i
++
)
{
r
=
DestroyEnvironmentBlock
(
env
[
i
]);
expect
(
TRUE
,
r
);
}
}
START_TEST
(
userenv
)
...
...
include/userenv.h
View file @
a96db3c3
...
...
@@ -31,6 +31,7 @@ extern "C" {
#endif
BOOL
WINAPI
CreateEnvironmentBlock
(
LPVOID
*
,
HANDLE
,
BOOL
);
BOOL
WINAPI
DestroyEnvironmentBlock
(
LPVOID
);
BOOL
WINAPI
ExpandEnvironmentStringsForUserA
(
HANDLE
,
LPCSTR
,
LPSTR
,
DWORD
);
BOOL
WINAPI
ExpandEnvironmentStringsForUserW
(
HANDLE
,
LPCWSTR
,
LPWSTR
,
DWORD
);
#define ExpandEnvironmentStringsForUser WINELIB_NAME_AW(ExpandEnvironmentStringsForUser)
...
...
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