Commit ee2e5672 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

localspl/tests: Check for Xcv-API only once.

parent e3c778eb
......@@ -347,7 +347,6 @@ static void test_XcvClosePort(void)
DWORD res;
HANDLE hXcv;
if ((pXcvOpenPort == NULL) || (pXcvClosePort == NULL)) return;
if (0)
{
......@@ -439,7 +438,6 @@ static void test_XcvDataPort_ConfigureLPTPortCommandOK(void)
DWORD res;
DWORD needed;
if ((pXcvOpenPort == NULL) || (pXcvDataPort == NULL) || (pXcvClosePort == NULL)) return;
hXcv = (HANDLE) 0xdeadbeef;
SetLastError(0xdeadbeef);
......@@ -545,8 +543,6 @@ static void test_XcvDataPort_DeletePort(void)
DWORD needed;
if ((pXcvOpenPort == NULL) || (pXcvDataPort == NULL) || (pXcvClosePort == NULL)) return;
hXcv = (HANDLE) 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pXcvOpenPort(emptyW, SERVER_ALL_ACCESS, &hXcv);
......@@ -591,8 +587,6 @@ static void test_XcvDataPort_GetTransmissionRetryTimeout(void)
DWORD len;
if ((pXcvOpenPort == NULL) || (pXcvDataPort == NULL) || (pXcvClosePort == NULL)) return;
hXcv = (HANDLE) 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pXcvOpenPort(emptyW, SERVER_ACCESS_ADMINISTER, &hXcv);
......@@ -717,8 +711,6 @@ static void test_XcvDataPort_MonitorUI(void)
DWORD len;
if ((pXcvOpenPort == NULL) || (pXcvDataPort == NULL) || (pXcvClosePort == NULL)) return;
hXcv = (HANDLE) 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pXcvOpenPort(emptyW, SERVER_ACCESS_ADMINISTER, &hXcv);
......@@ -832,8 +824,6 @@ static void test_XcvDataPort_PortIsValid(void)
DWORD needed;
if ((pXcvOpenPort == NULL) || (pXcvDataPort == NULL) || (pXcvClosePort == NULL)) return;
hXcv = (HANDLE) 0xdeadbeef;
SetLastError(0xdeadbeef);
res = pXcvOpenPort(emptyW, SERVER_ACCESS_ADMINISTER, &hXcv);
......@@ -989,7 +979,6 @@ static void test_XcvOpenPort(void)
DWORD res;
HANDLE hXcv;
if ((pXcvOpenPort == NULL) || (pXcvClosePort == NULL)) return;
if (0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment