Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
cfd18661
Commit
cfd18661
authored
Apr 23, 2010
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Apr 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Remove variable res which is not really used from test_XcvClosePort.
parent
d8062736
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
localmon.c
dlls/localspl/tests/localmon.c
+6
-9
No files found.
dlls/localspl/tests/localmon.c
View file @
cfd18661
...
...
@@ -775,9 +775,6 @@ static void test_XcvClosePort(void)
static
void
test_XcvDataPort_AddPort
(
void
)
{
DWORD
res
;
/*
* The following tests crash with native localspl.dll on w2k and xp,
* but it works, when the native dll (w2k and xp) is used in wine.
...
...
@@ -790,28 +787,28 @@ static void test_XcvDataPort_AddPort(void)
{
/* create a Port for a normal, writable file */
SetLastError
(
0xdeadbeef
);
res
=
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
tempfileW
,
(
lstrlenW
(
tempfileW
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
tempfileW
,
(
lstrlenW
(
tempfileW
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
/* add our testport again */
SetLastError
(
0xdeadbeef
);
res
=
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
tempfileW
,
(
lstrlenW
(
tempfileW
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
tempfileW
,
(
lstrlenW
(
tempfileW
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
/* create a well-known Port */
SetLastError
(
0xdeadbeef
);
res
=
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
portname_lpt1W
,
(
lstrlenW
(
portname_lpt1W
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
portname_lpt1W
,
(
lstrlenW
(
portname_lpt1W
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
SetLastError
(
0xdeadbeef
);
res
=
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
portname_lpt1W
,
(
lstrlenW
(
portname_lpt1W
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
pXcvDataPort
(
hXcv
,
cmd_AddPortW
,
(
PBYTE
)
portname_lpt1W
,
(
lstrlenW
(
portname_lpt1W
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
/* native localspl.dll on wine: ERROR_ALREADY_EXISTS */
/* ERROR_ALREADY_EXISTS is also returned from native localspl.dll on wine,
when "RPT1:" was already installed for redmonnt.dll:
res =
pXcvDataPort(hXcv, cmd_AddPortW, (PBYTE) portname_rpt1W, ...
pXcvDataPort(hXcv, cmd_AddPortW, (PBYTE) portname_rpt1W, ...
*/
/* cleanup */
SetLastError
(
0xdeadbeef
);
res
=
pXcvDataPort
(
hXcv
,
cmd_DeletePortW
,
(
PBYTE
)
tempfileW
,
(
lstrlenW
(
tempfileW
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
pXcvDataPort
(
hXcv
,
cmd_DeletePortW
,
(
PBYTE
)
tempfileW
,
(
lstrlenW
(
tempfileW
)
+
1
)
*
sizeof
(
WCHAR
),
NULL
,
0
,
NULL
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment