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
69164eac
Commit
69164eac
authored
Jun 14, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Jun 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Have GetPrinterDriverDirectory create the driver directory.
This is needed so that during wineprefix creation, winspool.drv can succeed in printer initialisation.
parent
bf263a34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
provider.c
dlls/localspl/provider.c
+9
-3
No files found.
dlls/localspl/provider.c
View file @
69164eac
...
...
@@ -140,7 +140,8 @@ static const WCHAR printersW[] = {'S','y','s','t','e','m','\\',
'C'
,
'o'
,
'n'
,
't'
,
'r'
,
'o'
,
'l'
,
'\\'
,
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'\\'
,
'P'
,
'r'
,
'i'
,
'n'
,
't'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
spooldriversW
[]
=
{
'\\'
,
's'
,
'p'
,
'o'
,
'o'
,
'l'
,
'\\'
,
'd'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
's'
,
'\\'
,
0
};
static
const
WCHAR
spoolW
[]
=
{
'\\'
,
's'
,
'p'
,
'o'
,
'o'
,
'l'
,
0
};
static
const
WCHAR
driversW
[]
=
{
'\\'
,
'd'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
's'
,
'\\'
,
0
};
static
const
WCHAR
spoolprtprocsW
[]
=
{
'\\'
,
's'
,
'p'
,
'o'
,
'o'
,
'l'
,
'\\'
,
'p'
,
'r'
,
't'
,
'p'
,
'r'
,
'o'
,
'c'
,
's'
,
'\\'
,
0
};
static
const
WCHAR
version0_regpathW
[]
=
{
'\\'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
'-'
,
'0'
,
0
};
static
const
WCHAR
version0_subdirW
[]
=
{
'\\'
,
'0'
,
0
};
...
...
@@ -1077,7 +1078,8 @@ static BOOL WINAPI fpGetPrinterDriverDirectory(LPWSTR pName, LPWSTR pEnvironment
/* GetSystemDirectoryW returns number of WCHAR including the '\0' */
needed
=
GetSystemDirectoryW
(
NULL
,
0
);
/* add the Size for the Subdirectories */
needed
+=
lstrlenW
(
spooldriversW
);
needed
+=
lstrlenW
(
spoolW
);
needed
+=
lstrlenW
(
driversW
);
needed
+=
lstrlenW
(
env
->
subdir
);
needed
*=
sizeof
(
WCHAR
);
/* return-value is size in Bytes */
...
...
@@ -1096,8 +1098,12 @@ static BOOL WINAPI fpGetPrinterDriverDirectory(LPWSTR pName, LPWSTR pEnvironment
GetSystemDirectoryW
(
dir
,
cbBuf
/
sizeof
(
WCHAR
)
);
/* add the Subdirectories */
lstrcatW
(
dir
,
spooldriversW
);
lstrcatW
(
dir
,
spoolW
);
CreateDirectoryW
(
dir
,
NULL
);
lstrcatW
(
dir
,
driversW
);
CreateDirectoryW
(
dir
,
NULL
);
lstrcatW
(
dir
,
env
->
subdir
);
CreateDirectoryW
(
dir
,
NULL
);
TRACE
(
"=> %s
\n
"
,
debugstr_w
(
dir
)
);
return
TRUE
;
...
...
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