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
71054631
Commit
71054631
authored
Jun 23, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Don't crash on Vista.
parent
b09f5c31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
environ.c
dlls/kernel32/tests/environ.c
+12
-9
No files found.
dlls/kernel32/tests/environ.c
View file @
71054631
...
...
@@ -201,15 +201,18 @@ static void test_GetSetEnvironmentVariableW(void)
"should not find variable but ret_size=%d GetLastError=%d
\n
"
,
ret_size
,
GetLastError
());
ret_size
=
GetEnvironmentVariableW
(
NULL
,
buf
,
lstrlenW
(
value
)
+
1
);
ok
(
ret_size
==
0
&&
GetLastError
()
==
ERROR_ENVVAR_NOT_FOUND
,
"should not find variable but ret_size=%d GetLastError=%d
\n
"
,
ret_size
,
GetLastError
());
ret
=
SetEnvironmentVariableW
(
NULL
,
NULL
);
ok
(
ret
==
FALSE
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_ENVVAR_NOT_FOUND
),
"should fail with NULL, NULL but ret=%d and GetLastError=%d
\n
"
,
ret
,
GetLastError
());
if
(
0
)
/* Both tests crash on Vista */
{
ret_size
=
GetEnvironmentVariableW
(
NULL
,
buf
,
lstrlenW
(
value
)
+
1
);
ok
(
ret_size
==
0
&&
GetLastError
()
==
ERROR_ENVVAR_NOT_FOUND
,
"should not find variable but ret_size=%d GetLastError=%d
\n
"
,
ret_size
,
GetLastError
());
ret
=
SetEnvironmentVariableW
(
NULL
,
NULL
);
ok
(
ret
==
FALSE
&&
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
||
GetLastError
()
==
ERROR_ENVVAR_NOT_FOUND
),
"should fail with NULL, NULL but ret=%d and GetLastError=%d
\n
"
,
ret
,
GetLastError
());
}
}
static
void
test_ExpandEnvironmentStringsA
(
void
)
...
...
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