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
917b0eed
Commit
917b0eed
authored
Jan 15, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Support xcv in DeletePortW.
parent
f9402b87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
16 deletions
+31
-16
info.c
dlls/winspool.drv/info.c
+31
-16
No files found.
dlls/winspool.drv/info.c
View file @
917b0eed
...
@@ -2380,7 +2380,8 @@ BOOL WINAPI DeletePortA (LPSTR pName, HWND hWnd, LPSTR pPortName)
...
@@ -2380,7 +2380,8 @@ BOOL WINAPI DeletePortA (LPSTR pName, HWND hWnd, LPSTR pPortName)
BOOL
WINAPI
DeletePortW
(
LPWSTR
pName
,
HWND
hWnd
,
LPWSTR
pPortName
)
BOOL
WINAPI
DeletePortW
(
LPWSTR
pName
,
HWND
hWnd
,
LPWSTR
pPortName
)
{
{
monitor_t
*
pm
;
monitor_t
*
pm
;
DWORD
res
=
ROUTER_UNKNOWN
;
monitor_t
*
pui
;
DWORD
res
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pPortName
));
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pPortName
));
...
@@ -2395,29 +2396,43 @@ BOOL WINAPI DeletePortW (LPWSTR pName, HWND hWnd, LPWSTR pPortName)
...
@@ -2395,29 +2396,43 @@ BOOL WINAPI DeletePortW (LPWSTR pName, HWND hWnd, LPWSTR pPortName)
}
}
/* an empty Portname is Invalid */
/* an empty Portname is Invalid */
if
(
!
pPortName
[
0
])
goto
cleanup
;
if
(
!
pPortName
[
0
])
{
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
}
pm
=
monitor_load_by_port
(
pPortName
);
pm
=
monitor_load_by_port
(
pPortName
);
if
(
pm
&&
pm
->
monitor
)
{
if
(
pm
&&
pm
->
monitor
&&
pm
->
monitor
->
pfnDeletePort
)
{
if
(
pm
->
monitor
->
pfnDeletePort
!=
NULL
)
{
TRACE
(
"Using %s for %s (%p: %s)
\n
"
,
debugstr_w
(
pm
->
name
),
debugstr_w
(
pPortName
),
pm
,
debugstr_w
(
pm
->
dllname
));
TRACE
(
"Using %s for %s:
\n
"
,
debugstr_w
(
pm
->
name
),
debugstr_w
(
pPortName
));
res
=
pm
->
monitor
->
pfnDeletePort
(
pName
,
hWnd
,
pPortName
);
res
=
pm
->
monitor
->
pfnDeletePort
(
pName
,
hWnd
,
pPortName
);
TRACE
(
"got %d with %u
\n
"
,
res
,
GetLastError
());
TRACE
(
"got %d with %d
\n
"
,
res
,
GetLastError
());
}
else
{
pui
=
monitor_loadui
(
pm
);
if
(
pui
&&
pui
->
monitorUI
&&
pui
->
monitorUI
->
pfnDeletePortUI
)
{
TRACE
(
"use %s for %s (%p: %s)
\n
"
,
debugstr_w
(
pui
->
name
),
debugstr_w
(
pPortName
),
pui
,
debugstr_w
(
pui
->
dllname
));
res
=
pui
->
monitorUI
->
pfnDeletePortUI
(
pName
,
hWnd
,
pPortName
);
TRACE
(
"got %d with %u
\n
"
,
res
,
GetLastError
());
}
}
else
if
(
pm
->
monitor
->
pfnXcvOpenPort
)
else
{
{
FIXME
(
"XcvOpenPort not implemented (dwMonitorSize: %d)
\n
"
,
pm
->
dwMonitorSize
);
FIXME
(
"not implemented for %s (%p: %s => %p: %s)
\n
"
,
debugstr_w
(
pPortName
),
pm
,
pm
?
debugstr_w
(
pm
->
dllname
)
:
NULL
,
pui
,
pui
?
debugstr_w
(
pui
->
dllname
)
:
NULL
);
/* XP: ERROR_NOT_SUPPORTED, NT351,9x: ERROR_INVALID_PARAMETER */
SetLastError
(
ERROR_NOT_SUPPORTED
);
res
=
FALSE
;
}
}
/* invalidate cached PORT_INFO_2W */
monitor_unload
(
pui
);
if
(
res
==
ROUTER_SUCCESS
)
monitor_flush
(
pm
);
}
}
/* always invalidate cached PORT_INFO_2W */
monitor_flush
(
pm
);
monitor_unload
(
pm
);
monitor_unload
(
pm
);
cleanup:
TRACE
(
"returning %d with %u
\n
"
,
res
,
GetLastError
());
/* XP: ERROR_NOT_SUPPORTED, NT351,9x: ERROR_INVALID_PARAMETER */
return
res
;
if
(
res
==
ROUTER_UNKNOWN
)
SetLastError
(
ERROR_NOT_SUPPORTED
);
TRACE
(
"returning %d with %d
\n
"
,
(
res
==
ROUTER_SUCCESS
),
GetLastError
());
return
(
res
==
ROUTER_SUCCESS
);
}
}
/******************************************************************************
/******************************************************************************
...
...
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