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
41132171
Commit
41132171
authored
May 05, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for DIRID_USERPROFILE.
parent
55954f29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
dirid.c
dlls/setupapi/dirid.c
+8
-2
No files found.
dlls/setupapi/dirid.c
View file @
41132171
...
...
@@ -76,8 +76,10 @@ static const WCHAR *create_system_dirid( int dirid )
static
const
WCHAR
Viewers
[]
=
{
'\\'
,
'v'
,
'i'
,
'e'
,
'w'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
System
[]
=
{
'\\'
,
's'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
0
};
static
const
WCHAR
Spool
[]
=
{
'\\'
,
's'
,
'p'
,
'o'
,
'o'
,
'l'
,
0
};
static
const
WCHAR
Profile
[]
=
{
'\\'
,
'p'
,
'r'
,
'o'
,
'f'
,
'i'
,
'l'
,
'e'
,
's'
,
'\\'
,
'A'
,
'd'
,
'm'
,
'i'
,
'n'
,
'i'
,
's'
,
't'
,
'r'
,
'a'
,
't'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
UserProfile
[]
=
{
'U'
,
'S'
,
'E'
,
'R'
,
'P'
,
'R'
,
'O'
,
'F'
,
'I'
,
'L'
,
'E'
,
0
};
WCHAR
buffer
[
MAX_PATH
+
16
],
*
str
;
WCHAR
buffer
[
MAX_PATH
+
32
],
*
str
;
int
len
;
switch
(
dirid
)
...
...
@@ -126,9 +128,13 @@ static const WCHAR *create_system_dirid( int dirid )
GetWindowsDirectoryW
(
buffer
,
MAX_PATH
);
strcatW
(
buffer
,
Spool
);
break
;
case
DIRID_USERPROFILE
:
if
(
GetEnvironmentVariableW
(
UserProfile
,
buffer
,
MAX_PATH
))
break
;
GetWindowsDirectoryW
(
buffer
,
MAX_PATH
);
strcatW
(
buffer
,
Profile
);
break
;
case
DIRID_LOADER
:
return
C_Root
;
/* FIXME */
case
DIRID_USERPROFILE
:
/* FIXME */
case
DIRID_COLOR
:
/* FIXME */
case
DIRID_PRINTPROCESSOR
:
/* FIXME */
default:
...
...
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