Commit 83486aaf authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

userenv: Implement DestroyEnvironmentBlock.

parent e8fb8fb1
@ stdcall CreateEnvironmentBlock(ptr ptr long) @ stdcall CreateEnvironmentBlock(ptr ptr long)
@ stub DestroyEnvironmentBlock @ stdcall DestroyEnvironmentBlock(ptr)
@ stdcall ExpandEnvironmentStringsForUserA(ptr str ptr long) @ stdcall ExpandEnvironmentStringsForUserA(ptr str ptr long)
@ stdcall ExpandEnvironmentStringsForUserW(ptr wstr ptr long) @ stdcall ExpandEnvironmentStringsForUserW(ptr wstr ptr long)
@ stdcall GetAllUsersProfileDirectoryA(ptr ptr) @ stdcall GetAllUsersProfileDirectoryA(ptr ptr)
......
...@@ -65,6 +65,17 @@ BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment, ...@@ -65,6 +65,17 @@ BOOL WINAPI CreateEnvironmentBlock( LPVOID* lpEnvironment,
return FALSE; return FALSE;
} }
BOOL WINAPI DestroyEnvironmentBlock(LPVOID lpEnvironment)
{
NTSTATUS r;
TRACE("%p\n", lpEnvironment);
r = RtlDestroyEnvironment(lpEnvironment);
if (r == STATUS_SUCCESS)
return TRUE;
return FALSE;
}
BOOL WINAPI ExpandEnvironmentStringsForUserA( HANDLE hToken, LPCSTR lpSrc, BOOL WINAPI ExpandEnvironmentStringsForUserA( HANDLE hToken, LPCSTR lpSrc,
LPSTR lpDest, DWORD dwSize ) LPSTR lpDest, DWORD dwSize )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment