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
c515a306
Commit
c515a306
authored
Mar 22, 2005
by
Jakob Eriksson
Committed by
Alexandre Julliard
Mar 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If the variable does not exist, just return.
parent
4364d068
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
environ.c
dlls/kernel/tests/environ.c
+3
-5
No files found.
dlls/kernel/tests/environ.c
View file @
c515a306
...
...
@@ -215,15 +215,13 @@ static void test_ExpandEnvironmentStringsA()
{
char
buf
[
256
],
buf1
[
256
];
DWORD
ret_size
,
ret_size1
;
int
error
;
ret_size1
=
GetWindowsDirectoryA
(
buf1
,
256
);
ok
((
ret_size1
>
0
)
&&
(
ret_size1
<
256
),
"GetWindowsDirectory Failed
\n
"
);
ret_size
=
ExpandEnvironmentStringsA
(
"%SystemRoot%"
,
buf
,
sizeof
(
buf
));
error
=
GetLastError
();
ok
(
!
strcmp
(
buf
,
buf1
),
"ExpandEnvironmentStrings failed %s vs %s. GetLastError() == %d, ret_size = %ld
\n
"
,
buf
,
buf1
,
error
,
ret_size
);
if
(
ERROR_ENVVAR_NOT_FOUND
==
GetLastError
())
return
;
ok
(
!
strcmp
(
buf
,
buf1
),
"ExpandEnvironmentStrings failed %s vs %s. ret_size = %ld
\n
"
,
buf
,
buf1
,
ret_size
);
}
START_TEST
(
environ
)
...
...
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