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
a3974485
Commit
a3974485
authored
Sep 21, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userenv/tests: Don't crash on NT4.
parent
8ccfe80c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
userenv.c
dlls/userenv/tests/userenv.c
+12
-4
No files found.
dlls/userenv/tests/userenv.c
View file @
a3974485
...
@@ -189,14 +189,22 @@ static void test_create_env(void)
...
@@ -189,14 +189,22 @@ static void test_create_env(void)
r
=
SetEnvironmentVariableA
(
"WINE_XYZZY"
,
"ZZYZX"
);
r
=
SetEnvironmentVariableA
(
"WINE_XYZZY"
,
"ZZYZX"
);
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
r
=
CreateEnvironmentBlock
(
NULL
,
NULL
,
FALSE
);
if
(
0
)
expect
(
FALSE
,
r
);
{
/* Crashes on NT4 */
r
=
CreateEnvironmentBlock
(
NULL
,
NULL
,
FALSE
);
expect
(
FALSE
,
r
);
}
r
=
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_QUERY
|
TOKEN_DUPLICATE
,
&
htok
);
r
=
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_QUERY
|
TOKEN_DUPLICATE
,
&
htok
);
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
r
=
CreateEnvironmentBlock
(
NULL
,
htok
,
FALSE
);
if
(
0
)
expect
(
FALSE
,
r
);
{
/* Crashes on NT4 */
r
=
CreateEnvironmentBlock
(
NULL
,
htok
,
FALSE
);
expect
(
FALSE
,
r
);
}
r
=
CreateEnvironmentBlock
((
LPVOID
)
&
env1
,
NULL
,
FALSE
);
r
=
CreateEnvironmentBlock
((
LPVOID
)
&
env1
,
NULL
,
FALSE
);
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
...
...
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