Lines Matching refs:res2

445     DWORD   res2;  in test_ClosePort()  local
456 res2 = pOpenPort(nameW, &hPort2); in test_ClosePort()
458 if (res2 && (hPort2 != hPort)) { in test_ClosePort()
460 res2 = pClosePort(hPort2); in test_ClosePort()
461 ok(res2, "got %u with %u (expected '!= 0')\n", res2, GetLastError()); in test_ClosePort()
478 res2 = pOpenPort(nameW, &hPort2); in test_ClosePort()
480 if (res2 && (hPort2 != hPort)) { in test_ClosePort()
482 res2 = pClosePort(hPort2); in test_ClosePort()
483 ok(res2, "got %u with %u (expected '!= 0')\n", res2, GetLastError()); in test_ClosePort()
500 res2 = pOpenPort(nameW, &hPort2); in test_ClosePort()
502 if (res2 && (hPort2 != hPort)) { in test_ClosePort()
504 res2 = pClosePort(hPort2); in test_ClosePort()
505 ok(res2, "got %u with %u (expected '!= 0')\n", res2, GetLastError()); in test_ClosePort()
755 DWORD res2; in test_OpenPort() local
771 res2 = pOpenPort(nameW, &hPort2); in test_OpenPort()
772 ok( res2, "got %u with %u and %p (expected '!= 0')\n", in test_OpenPort()
773 res2, GetLastError(), hPort2); in test_OpenPort()
776 if (res2 && (hPort2 != hPort)) pClosePort(hPort2); in test_OpenPort()
792 res2 = pOpenPort(nameW, &hPort2); in test_OpenPort()
793 ok( res2 || (GetLastError() == ERROR_ACCESS_DENIED), in test_OpenPort()
795 res2, GetLastError(), hPort2); in test_OpenPort()
798 if (res2 && (hPort2 != hPort)) pClosePort(hPort2); in test_OpenPort()
813 res2 = pOpenPort(nameW, &hPort2); in test_OpenPort()
814 ok( res2 && (hPort2 != hPort), in test_OpenPort()
816 res2, GetLastError(), hPort2, hPort); in test_OpenPort()
819 if (res2 && (hPort2 != hPort)) pClosePort(hPort2); in test_OpenPort()