[PATCH] userenv: Add a small test for DestroyEnvironmentBlock.
Lei Zhang
thestig at google.com
Tue Feb 2 14:53:16 CST 2010
Hi,
Since Maartin's patch for DestroyEnvironmentBlock got committed
instead of mine, I'm resubmitting the bit worth committing.
- Lei
-------------- next part --------------
From 64c6d6022d74e1578f2dab0fc4bee3ef44241379 Mon Sep 17 00:00:00 2001
From: Lei Zhang <thestig at google.com>
Date: Tue, 2 Feb 2010 12:45:06 -0800
Subject: [PATCH] userenv: Add a small test for DestroyEnvironmentBlock.
---
dlls/userenv/tests/userenv.c | 6 ++++++
include/userenv.h | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/userenv/tests/userenv.c b/dlls/userenv/tests/userenv.c
index 39c1bbf..c61958f 100644
--- a/dlls/userenv/tests/userenv.c
+++ b/dlls/userenv/tests/userenv.c
@@ -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)
diff --git a/include/userenv.h b/include/userenv.h
index 507715f..de8bbe0 100644
--- a/include/userenv.h
+++ b/include/userenv.h
@@ -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)
--
1.6.6
More information about the wine-patches
mailing list