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
a12c6b66
Commit
a12c6b66
authored
Mar 10, 2005
by
Uwe Bonnes
Committed by
Alexandre Julliard
Mar 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for %Systemroot%.
parent
fa3f6628
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
environ.c
dlls/kernel/tests/environ.c
+13
-0
No files found.
dlls/kernel/tests/environ.c
View file @
a12c6b66
...
...
@@ -211,8 +211,21 @@ static void test_GetSetEnvironmentVariableW(void)
ret
,
GetLastError
());
}
static
void
test_ExpandEnvironmentStringsA
()
{
char
buf
[
256
],
buf1
[
256
];
DWORD
ret_size
,
ret_size1
;
ret_size1
=
GetWindowsDirectoryA
(
buf1
,
256
);
ok
((
ret_size1
>
0
)
&&
(
ret_size1
<
256
),
"GetWindowsDirectory Failed
\n
"
);
ret_size
=
ExpandEnvironmentStringsA
(
"%SystemRoot%"
,
buf
,
256
);
ok
(
!
strcmp
(
buf
,
buf1
),
"ExpandEnvironmentStrings failed %s vs %s
\n
"
,
buf
,
buf1
);
}
START_TEST
(
environ
)
{
test_GetSetEnvironmentVariableA
();
test_GetSetEnvironmentVariableW
();
test_ExpandEnvironmentStringsA
();
}
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