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
9827e5d2
Commit
9827e5d2
authored
Mar 07, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Mar 07, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Implement DeletePort for XcvDataPort.
parent
4bd9f22f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
localmon.c
dlls/localspl/localmon.c
+13
-0
No files found.
dlls/localspl/localmon.c
View file @
9827e5d2
...
...
@@ -65,6 +65,7 @@ static struct list xcv_handles = LIST_INIT( xcv_handles );
/* ############################### */
static
const
WCHAR
cmd_DeletePortW
[]
=
{
'D'
,
'e'
,
'l'
,
'e'
,
't'
,
'e'
,
'P'
,
'o'
,
'r'
,
't'
,
0
};
static
const
WCHAR
cmd_ConfigureLPTPortCommandOKW
[]
=
{
'C'
,
'o'
,
'n'
,
'f'
,
'i'
,
'g'
,
'u'
,
'r'
,
'e'
,
'L'
,
'P'
,
'T'
,
'P'
,
'o'
,
'r'
,
't'
,
'C'
,
'o'
,
'm'
,
'm'
,
'a'
,
'n'
,
'd'
,
'O'
,
'K'
,
0
};
...
...
@@ -468,6 +469,18 @@ DWORD WINAPI localmon_XcvDataPort(HANDLE hXcv, LPCWSTR pszDataName, PBYTE pInput
return
res
;
}
if
(
!
lstrcmpW
(
pszDataName
,
cmd_DeletePortW
))
{
TRACE
(
"InputData (%d): %s
\n
"
,
cbInputData
,
debugstr_w
(
(
LPWSTR
)
pInputData
));
res
=
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
WinNT_CV_PortsW
,
&
hroot
);
if
(
res
==
ERROR_SUCCESS
)
{
res
=
RegDeleteValueW
(
hroot
,
(
LPWSTR
)
pInputData
);
RegCloseKey
(
hroot
);
TRACE
(
"=> %u with %u
\n
"
,
res
,
GetLastError
()
);
return
res
;
}
return
ERROR_FILE_NOT_FOUND
;
}
if
(
!
lstrcmpW
(
pszDataName
,
cmd_GetDefaultCommConfigW
))
{
TRACE
(
"InputData (%d): %s
\n
"
,
cbInputData
,
debugstr_w
(
(
LPWSTR
)
pInputData
));
*
pcbOutputNeeded
=
cbOutputData
;
...
...
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