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
0aaf17c0
Commit
0aaf17c0
authored
Mar 31, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fix buffer size calculation in get_keypath.
parent
e5fe5107
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
action.c
dlls/msi/action.c
+3
-6
No files found.
dlls/msi/action.c
View file @
0aaf17c0
...
...
@@ -2879,14 +2879,11 @@ static WCHAR *get_keypath( MSIPACKAGE *package, HKEY root, const WCHAR *path )
UINT
size
;
WCHAR
*
path_32node
;
size
=
(
strlenW
(
path
)
+
strlenW
(
szWow6432Node
)
+
1
)
*
sizeof
(
WCHAR
);
path_32node
=
msi_alloc
(
size
);
if
(
!
path_32node
)
return
NULL
;
size
=
(
strlenW
(
path
)
+
strlenW
(
szWow6432Node
)
+
2
)
*
sizeof
(
WCHAR
);
if
(
!
(
path_32node
=
msi_alloc
(
size
)))
return
NULL
;
memcpy
(
path_32node
,
path
,
len
*
sizeof
(
WCHAR
)
);
path_32node
[
len
]
=
0
;
strcatW
(
path_32node
,
szWow6432Node
);
strcpyW
(
path_32node
+
len
,
szWow6432Node
);
strcatW
(
path_32node
,
szBackSlash
);
strcatW
(
path_32node
,
path
+
len
);
return
path_32node
;
...
...
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