Commit a96db3c3 authored by Lei Zhang's avatar Lei Zhang Committed by Alexandre Julliard

userenv: Add a small test for DestroyEnvironmentBlock.

parent 823edff3
......@@ -197,6 +197,12 @@ static void test_create_env(void)
r = get_env(env[3], "WINE_XYZZY", &st);
expect(TRUE, r);
if (r) HeapFree(GetProcessHeap(), 0, st);
for (i = 0; i < sizeof(env) / sizeof(env[0]); i++)
{
r = DestroyEnvironmentBlock(env[i]);
expect(TRUE, r);
}
}
START_TEST(userenv)
......
......@@ -31,6 +31,7 @@ extern "C" {
#endif
BOOL WINAPI CreateEnvironmentBlock(LPVOID*,HANDLE,BOOL);
BOOL WINAPI DestroyEnvironmentBlock(LPVOID);
BOOL WINAPI ExpandEnvironmentStringsForUserA(HANDLE,LPCSTR,LPSTR,DWORD);
BOOL WINAPI ExpandEnvironmentStringsForUserW(HANDLE,LPCWSTR,LPWSTR,DWORD);
#define ExpandEnvironmentStringsForUser WINELIB_NAME_AW(ExpandEnvironmentStringsForUser)
......
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