userenv: Add a small test for DestroyEnvironmentBlock.

This commit is contained in:
Lei Zhang 2010-02-02 12:45:06 -08:00 committed by Alexandre Julliard
parent 823edff312
commit a96db3c35c
2 changed files with 7 additions and 0 deletions

View File

@ -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)

View File

@ -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)