userenv: Add a small test for DestroyEnvironmentBlock.
This commit is contained in:
parent
823edff312
commit
a96db3c35c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue