rpc_J_PL4

Greg Turner gmturner007 at ameritech.net
Tue Dec 3 20:35:05 CST 2002


License: X11-MIT

Changelog:

* programs/rpcss/tests: rpc.c:
  Greg Turner <gmturner007 at ameritech.net>
- W9x doesn't support widechar uuids (crashes on test)

--
Index: dlls/rpcrt4/tests/rpc.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/tests/rpc.c,v
retrieving revision 1.1
diff -u -r1.1 rpc.c
--- dlls/rpcrt4/tests/rpc.c	7 Oct 2002 21:54:07 -0000	1.1
+++ dlls/rpcrt4/tests/rpc.c	4 Dec 2002 02:26:22 -0000
@@ -97,21 +97,6 @@
 	    str[i2] = x; /* change it back so remaining tests are interesting. */
 	}
     }
-
-    /* Uuid to String to Uuid (wchar) */
-    for (i1 = 0; i1 < 10; i1++) {
-        Uuid1 = Uuid_Table[i1];
-	ok( (UuidToStringW(&Uuid1, &wstr) == RPC_S_OK), "Simple UUID->WString copy" );
-	ok( (UuidFromStringW(wstr, &Uuid2) == RPC_S_OK), "Simple WString->UUID copy from generated UUID String" );
-	ok( UuidEqual(&Uuid1, &Uuid2, &rslt), "Uuid -> WString -> Uuid transform" );
-	/* invalid uuid tests  -- size of valid UUID string=36 */
-	for (i2 = 0; i2 < 36; i2++) {
-	    wx = wstr[i2];
-	    wstr[i2] = 'g'; /* whatever, but "g" is a good boundary condition */
-	    ok( (UuidFromStringW(wstr, &Uuid1) == RPC_S_INVALID_STRING_UUID), "Invalid UUID WString" );
-	    wstr[i2] = wx; /* change it back so remaining tests are interesting. */
-	}
-    }
 }
 
 START_TEST( rpc )

-- 
gmt




More information about the wine-patches mailing list