[PATCH] oleaut32/tests: NULL is valid for SysFreeString

Detlef Riekenberg wine.dev at web.de
Sun Sep 21 08:42:55 CDT 2008


---
 dlls/oleaut32/tests/vartype.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/tests/vartype.c b/dlls/oleaut32/tests/vartype.c
index e2db519..d170532 100644
--- a/dlls/oleaut32/tests/vartype.c
+++ b/dlls/oleaut32/tests/vartype.c
@@ -5181,6 +5181,12 @@ static void test_SysAllocStringByteLen(void)
   }
 }
 
+static void test_SysFreeString(void)
+{
+  /* NULL is valid */
+  SysFreeString(NULL);
+}
+
 static void test_SysReAllocString(void)
 {
   const OLECHAR szTest[5] = { 'T','e','s','t','\0' };
@@ -6115,6 +6121,7 @@ START_TEST(vartype)
   test_SysAllocString();
   test_SysAllocStringLen();
   test_SysAllocStringByteLen();
+  test_SysFreeString();
   test_SysReAllocString();
   test_SysReAllocStringLen();
   test_BstrCopy();
-- 
1.5.4.3


--=-VZsXl49qY9W433mBHwZe--




More information about the wine-patches mailing list