Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6d88e435
Commit
6d88e435
authored
Nov 09, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Implement ConfigurePortA.
parent
a44e0ac6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
info.c
dlls/winspool.drv/info.c
+25
-2
No files found.
dlls/winspool.drv/info.c
View file @
6d88e435
...
...
@@ -5788,8 +5788,31 @@ BOOL WINAPI AddPrinterDriverExA( LPSTR pName, DWORD Level,
*/
BOOL
WINAPI
ConfigurePortA
(
LPSTR
pName
,
HWND
hWnd
,
LPSTR
pPortName
)
{
FIXME
(
"%s %p %s
\n
"
,
debugstr_a
(
pName
),
hWnd
,
debugstr_a
(
pPortName
));
return
FALSE
;
LPWSTR
nameW
=
NULL
;
LPWSTR
portW
=
NULL
;
INT
len
;
DWORD
res
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_a
(
pName
),
hWnd
,
debugstr_a
(
pPortName
));
/* convert servername to unicode */
if
(
pName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pName
,
-
1
,
NULL
,
0
);
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pName
,
-
1
,
nameW
,
len
);
}
/* convert portname to unicode */
if
(
pPortName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pPortName
,
-
1
,
NULL
,
0
);
portW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pPortName
,
-
1
,
portW
,
len
);
}
res
=
ConfigurePortW
(
nameW
,
hWnd
,
portW
);
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
HeapFree
(
GetProcessHeap
(),
0
,
portW
);
return
res
;
}
/******************************************************************************
...
...
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