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
4bac1e95
Commit
4bac1e95
authored
Aug 20, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Create the manifest directory if needed (spotted by Dan Kegel).
parent
b8a76c60
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
commctrl.c
dlls/comctl32/commctrl.c
+9
-4
No files found.
dlls/comctl32/commctrl.c
View file @
4bac1e95
...
...
@@ -145,7 +145,8 @@ static const WCHAR strCC32SubclassInfo[] = {
static
BOOL
create_manifest
(
BOOL
install
)
{
static
const
WCHAR
dirW
[]
=
{
'\\'
,
'w'
,
'i'
,
'n'
,
's'
,
'x'
,
's'
,
'\\'
,
'm'
,
'a'
,
'n'
,
'i'
,
'f'
,
'e'
,
's'
,
't'
,
's'
,
'\\'
,
0
};
static
const
WCHAR
winsxsW
[]
=
{
'\\'
,
'w'
,
'i'
,
'n'
,
's'
,
'x'
,
's'
,
0
};
static
const
WCHAR
manifestsW
[]
=
{
'\\'
,
'm'
,
'a'
,
'n'
,
'i'
,
'f'
,
'e'
,
's'
,
't'
,
's'
,
'\\'
,
0
};
DWORD
len
,
written
;
WCHAR
*
buffer
;
...
...
@@ -154,10 +155,14 @@ static BOOL create_manifest( BOOL install )
len
=
MultiByteToWideChar
(
CP_UTF8
,
0
,
manifest_filename
,
sizeof
(
manifest_filename
),
NULL
,
0
);
len
+=
GetWindowsDirectoryW
(
NULL
,
0
);
len
=
len
*
sizeof
(
WCHAR
)
+
sizeof
(
dirW
);
if
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
)))
return
FALSE
;
len
+=
lstrlenW
(
winsxsW
);
len
+=
lstrlenW
(
manifestsW
);
if
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
)
)))
return
FALSE
;
GetWindowsDirectoryW
(
buffer
,
len
);
lstrcatW
(
buffer
,
dirW
);
lstrcatW
(
buffer
,
winsxsW
);
CreateDirectoryW
(
buffer
,
NULL
);
lstrcatW
(
buffer
,
manifestsW
);
CreateDirectoryW
(
buffer
,
NULL
);
MultiByteToWideChar
(
CP_UTF8
,
0
,
manifest_filename
,
sizeof
(
manifest_filename
),
buffer
+
lstrlenW
(
buffer
),
len
);
if
(
install
)
...
...
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