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
bca84d54
Commit
bca84d54
authored
Apr 29, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Apr 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userenv: Initial implementation of CreateEnvironmentBlock.
parent
ffb04579
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
Makefile.in
dlls/userenv/Makefile.in
+1
-1
userenv.c
dlls/userenv/tests/userenv.c
+2
-2
userenv_main.c
dlls/userenv/userenv_main.c
+13
-1
No files found.
dlls/userenv/Makefile.in
View file @
bca84d54
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
userenv.dll
IMPORTS
=
kernel32
IMPORTS
=
kernel32
ntdll
IMPORTLIB
=
userenv
C_SRCS
=
\
...
...
dlls/userenv/tests/userenv.c
View file @
bca84d54
...
...
@@ -41,7 +41,7 @@ static void test_create_env(void)
expect
(
FALSE
,
r
);
r
=
CreateEnvironmentBlock
((
LPVOID
)
&
env
,
NULL
,
FALSE
);
todo_wine
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
r
=
OpenProcessToken
(
GetCurrentProcess
(),
TOKEN_QUERY
|
TOKEN_DUPLICATE
,
&
htok
);
expect
(
TRUE
,
r
);
...
...
@@ -50,7 +50,7 @@ static void test_create_env(void)
expect
(
FALSE
,
r
);
r
=
CreateEnvironmentBlock
((
LPVOID
)
&
env2
,
htok
,
FALSE
);
todo_wine
expect
(
TRUE
,
r
);
expect
(
TRUE
,
r
);
}
START_TEST
(
userenv
)
...
...
dlls/userenv/userenv_main.c
View file @
bca84d54
...
...
@@ -20,9 +20,12 @@
#include <stdarg.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "winternl.h"
#include "userenv.h"
#include "wine/debug.h"
...
...
@@ -49,7 +52,16 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
BOOL
WINAPI
CreateEnvironmentBlock
(
LPVOID
*
lpEnvironment
,
HANDLE
hToken
,
BOOL
bInherit
)
{
FIXME
(
"%p %p %d
\n
"
,
lpEnvironment
,
hToken
,
bInherit
);
NTSTATUS
r
;
TRACE
(
"%p %p %d
\n
"
,
lpEnvironment
,
hToken
,
bInherit
);
if
(
!
lpEnvironment
)
return
FALSE
;
r
=
RtlCreateEnvironment
(
bInherit
,
(
WCHAR
**
)
lpEnvironment
);
if
(
r
==
STATUS_SUCCESS
)
return
TRUE
;
return
FALSE
;
}
...
...
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