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
7a2c4fb1
Commit
7a2c4fb1
authored
Jul 26, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jul 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Return the full path in DRIVER_INFO_2 and 3.
parent
a2daf754
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
42 deletions
+42
-42
info.c
dlls/winspool.drv/info.c
+42
-42
No files found.
dlls/winspool.drv/info.c
View file @
7a2c4fb1
...
...
@@ -4451,75 +4451,75 @@ static BOOL WINSPOOL_GetDriverInfoFromReg(
strPtr
=
(
pDriverStrings
)
?
(
pDriverStrings
+
(
*
pcbNeeded
))
:
NULL
;
}
if
(
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Data_FileW
,
strPtr
,
0
,
&
size
,
unicode
))
{
/* .pDataFile: For postscript-drivers, this is the ppd-file */
if
(
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Data_FileW
,
strPtr
,
0
,
&
size
,
unicode
))
{
*
pcbNeeded
+=
size
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Data_FileW
,
strPtr
,
size
,
&
tmp
,
unicode
);
if
(
ptr
)
((
PDRIVER_INFO_2W
)
ptr
)
->
pDataFile
=
(
LPWSTR
)
strPtr
;
if
(
*
pcbNeeded
<=
cbBuf
)
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Data_FileW
,
strPtr
,
size
,
&
size
,
unicode
);
if
(
di
)
di
->
pDataFile
=
(
LPWSTR
)
strPtr
;
strPtr
=
(
pDriverStrings
)
?
pDriverStrings
+
(
*
pcbNeeded
)
:
NULL
;
}
if
(
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Configuration_FileW
,
strPtr
,
0
,
&
size
,
unicode
))
{
/* .pConfigFile is the Driver user Interface */
if
(
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Configuration_FileW
,
strPtr
,
0
,
&
size
,
unicode
))
{
*
pcbNeeded
+=
size
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Configuration_FileW
,
strPtr
,
size
,
&
tmp
,
unicode
);
if
(
ptr
)
((
PDRIVER_INFO_2W
)
ptr
)
->
pConfigFile
=
(
LPWSTR
)
strPtr
;
if
(
*
pcbNeeded
<=
cbBuf
)
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Configuration_FileW
,
strPtr
,
size
,
&
size
,
unicode
);
if
(
di
)
di
->
pConfigFile
=
(
LPWSTR
)
strPtr
;
strPtr
=
(
pDriverStrings
)
?
pDriverStrings
+
(
*
pcbNeeded
)
:
NULL
;
}
if
(
Level
==
2
)
{
if
(
Level
==
2
)
{
RegCloseKey
(
hkeyDriver
);
TRACE
(
"buffer space %d required %d
\n
"
,
cbBuf
,
*
pcbNeeded
);
return
TRUE
;
}
if
(
Level
!=
5
&&
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Help_FileW
,
strPtr
,
0
,
&
size
,
unicode
))
{
if
(
Level
==
5
)
{
RegCloseKey
(
hkeyDriver
);
FIXME
(
"level 5: incomplete
\n
"
);
return
TRUE
;
}
/* .pHelpFile */
if
(
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Help_FileW
,
strPtr
,
0
,
&
size
,
unicode
))
{
*
pcbNeeded
+=
size
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Help_FileW
,
strPtr
,
size
,
&
tmp
,
unicode
);
if
(
ptr
)
((
PDRIVER_INFO_3W
)
ptr
)
->
pHelpFile
=
(
LPWSTR
)
strPtr
;
if
(
*
pcbNeeded
<=
cbBuf
)
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Help_FileW
,
strPtr
,
size
,
&
size
,
unicode
);
if
(
di
)
di
->
pHelpFile
=
(
LPWSTR
)
strPtr
;
strPtr
=
(
pDriverStrings
)
?
pDriverStrings
+
(
*
pcbNeeded
)
:
NULL
;
}
if
(
Level
!=
5
&&
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Dependent_FilesW
,
strPtr
,
0
,
&
size
,
unicode
))
{
/* .pDependentFiles */
if
(
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Dependent_FilesW
,
strPtr
,
0
,
&
size
,
unicode
))
{
*
pcbNeeded
+=
size
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
Dependent_FilesW
,
strPtr
,
size
,
&
tmp
,
unicode
);
if
(
ptr
)
((
PDRIVER_INFO_3W
)
ptr
)
->
pDependentFiles
=
(
LPWSTR
)
strPtr
;
if
(
*
pcbNeeded
<=
cbBuf
)
get_filename_from_reg
(
hkeyDriver
,
driverdir
,
dirlen
,
Dependent_FilesW
,
strPtr
,
size
,
&
size
,
unicode
);
if
(
di
)
di
->
pDependentFiles
=
(
LPWSTR
)
strPtr
;
strPtr
=
(
pDriverStrings
)
?
pDriverStrings
+
(
*
pcbNeeded
)
:
NULL
;
}
if
(
Level
!=
5
&&
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
MonitorW
,
strPtr
,
0
,
&
size
,
unicode
))
{
/* .pMonitorName is the optional Language Monitor */
if
(
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
MonitorW
,
strPtr
,
0
,
&
size
,
unicode
))
{
*
pcbNeeded
+=
size
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
MonitorW
,
strPtr
,
size
,
&
tmp
,
unicode
);
if
(
ptr
)
((
PDRIVER_INFO_3W
)
ptr
)
->
pMonitorName
=
(
LPWSTR
)
strPtr
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
MonitorW
,
strPtr
,
size
,
&
size
,
unicode
);
if
(
di
)
di
->
pMonitorName
=
(
LPWSTR
)
strPtr
;
strPtr
=
(
pDriverStrings
)
?
pDriverStrings
+
(
*
pcbNeeded
)
:
NULL
;
}
if
(
Level
!=
5
&&
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
DatatypeW
,
strPtr
,
0
,
&
size
,
unicode
))
{
/* .pDefaultDataType */
if
(
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
DatatypeW
,
strPtr
,
0
,
&
size
,
unicode
))
{
*
pcbNeeded
+=
size
;
if
(
*
pcbNeeded
<=
cbBuf
)
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
DatatypeW
,
strPtr
,
size
,
&
tmp
,
unicode
);
if
(
ptr
)
((
PDRIVER_INFO_3W
)
ptr
)
->
pDefaultDataType
=
(
LPWSTR
)
strPtr
;
WINSPOOL_GetStringFromReg
(
hkeyDriver
,
DatatypeW
,
strPtr
,
size
,
&
size
,
unicode
);
if
(
di
)
di
->
pDefaultDataType
=
(
LPWSTR
)
strPtr
;
strPtr
=
(
pDriverStrings
)
?
pDriverStrings
+
(
*
pcbNeeded
)
:
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