Skip to content
Snippets Groups Projects
Commit d62fb298 authored by Hugh McMaster's avatar Hugh McMaster Committed by Alexandre Julliard
Browse files

regedit: Re-size the data export buffer using the required size instead of doubling it.

parent 9d23db6b
No related branches found
Tags wine-961102
No related merge requests found
......@@ -1384,7 +1384,7 @@ static int export_registry_data(FILE *fp, HKEY key, WCHAR *path, BOOL unicode)
{
if (data_size > max_data_bytes)
{
max_data_bytes *= 2;
max_data_bytes = data_size;
data = resize_buffer(data, max_data_bytes);
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment