Paul Vriens : setupapi/tests: Remove check as we don't care how 'field' is allocated.

Alexandre Julliard julliard at winehq.org
Fri Mar 28 10:02:57 CDT 2008


Module: wine
Branch: master
Commit: dacb11533ddc8ac683ab78bc6bac9c1777fe82b3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dacb11533ddc8ac683ab78bc6bac9c1777fe82b3

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Fri Mar 28 11:17:07 2008 +0100

setupapi/tests: Remove check as we don't care how 'field' is allocated.

---

 dlls/setupapi/tests/parser.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/dlls/setupapi/tests/parser.c b/dlls/setupapi/tests/parser.c
index 8b9a520..d36a729 100644
--- a/dlls/setupapi/tests/parser.c
+++ b/dlls/setupapi/tests/parser.c
@@ -461,11 +461,6 @@ static void test_pSetupGetField(void)
         field = pSetupGetField( &context, i );
         ok( field != NULL, "Failed to get field %i\n", i );
         ok( !lstrcmpW( getfield_res[i], field ), "Wrong string returned\n" );
-
-        ret = HeapFree( GetProcessHeap(), 0, (LPVOID)field );
-        ok( !ret, "Expected HeapFree to fail\n" );
-        ok( GetLastError() == ERROR_INVALID_PARAMETER,
-            "Expected ERROR_INVALID_PARAMETER, got %u\n", GetLastError() );
     }
 
     field = pSetupGetField( &context, 3 );




More information about the wine-cvs mailing list