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
9170cc82
Commit
9170cc82
authored
Jul 11, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 11, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly resize the buffer based on ERROR_MORE_DATA.
Also remember to free the allocated buffer.
parent
0f394ae6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
registry.c
dlls/msi/registry.c
+12
-1
No files found.
dlls/msi/registry.c
View file @
9170cc82
...
...
@@ -873,9 +873,18 @@ UINT WINAPI MsiEnumComponentQualifiersW( LPWSTR szComponent, DWORD iIndex,
rc
=
RegEnumValueW
(
key
,
iIndex
,
lpQualifierBuf
,
pcchQualifierBuf
,
NULL
,
NULL
,
(
LPBYTE
)
full_buffer
,
&
full_buffer_size
);
if
(
rc
==
ERROR_MORE_DATA
)
{
HeapFree
(
GetProcessHeap
(),
0
,
full_buffer
);
full_buffer_size
+=
sizeof
(
WCHAR
);
full_buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
full_buffer_size
);
rc
=
RegEnumValueW
(
key
,
iIndex
,
lpQualifierBuf
,
pcchQualifierBuf
,
NULL
,
NULL
,
(
LPBYTE
)
full_buffer
,
&
full_buffer_size
);
}
RegCloseKey
(
key
);
if
(
rc
==
ERROR_SUCCESS
||
rc
==
ERROR_MORE_DATA
)
if
(
rc
==
ERROR_SUCCESS
)
{
if
(
lpApplicationDataBuf
&&
pcchApplicationDataBuf
)
{
...
...
@@ -898,6 +907,8 @@ UINT WINAPI MsiEnumComponentQualifiersW( LPWSTR szComponent, DWORD iIndex,
debugstr_w
(
lpApplicationDataBuf
));
}
HeapFree
(
GetProcessHeap
(),
0
,
full_buffer
);
return
rc
;
}
...
...
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