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
6836990e
Commit
6836990e
authored
Mar 27, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Only cleanup fake dlls once the whole section has been executed.
parent
0ef63e16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
fakedll.c
dlls/setupapi/fakedll.c
+1
-0
install.c
dlls/setupapi/install.c
+3
-2
No files found.
dlls/setupapi/fakedll.c
View file @
6836990e
...
@@ -630,5 +630,6 @@ void cleanup_fake_dlls(void)
...
@@ -630,5 +630,6 @@ void cleanup_fake_dlls(void)
HeapFree
(
GetProcessHeap
(),
0
,
file_buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
file_buffer
);
file_buffer
=
NULL
;
file_buffer
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
handled_dlls
);
HeapFree
(
GetProcessHeap
(),
0
,
handled_dlls
);
handled_dlls
=
NULL
;
handled_count
=
handled_total
=
0
;
handled_count
=
handled_total
=
0
;
}
}
dlls/setupapi/install.c
View file @
6836990e
...
@@ -713,7 +713,6 @@ static BOOL fake_dlls_callback( HINF hinf, PCWSTR field, void *arg )
...
@@ -713,7 +713,6 @@ static BOOL fake_dlls_callback( HINF hinf, PCWSTR field, void *arg )
HeapFree
(
GetProcessHeap
(),
0
,
path
);
HeapFree
(
GetProcessHeap
(),
0
,
path
);
if
(
!
ret
)
break
;
if
(
!
ret
)
break
;
}
}
cleanup_fake_dlls
();
return
ret
;
return
ret
;
}
}
...
@@ -1095,7 +1094,9 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
...
@@ -1095,7 +1094,9 @@ BOOL WINAPI SetupInstallFromInfSectionW( HWND owner, HINF hinf, PCWSTR section,
}
}
else
info
.
callback
=
NULL
;
else
info
.
callback
=
NULL
;
if
(
!
iterate_section_fields
(
hinf
,
section
,
WineFakeDlls
,
fake_dlls_callback
,
NULL
))
if
(
iterate_section_fields
(
hinf
,
section
,
WineFakeDlls
,
fake_dlls_callback
,
NULL
))
cleanup_fake_dlls
();
else
return
FALSE
;
return
FALSE
;
if
(
!
iterate_section_fields
(
hinf
,
section
,
RegisterDlls
,
register_dlls_callback
,
&
info
))
if
(
!
iterate_section_fields
(
hinf
,
section
,
RegisterDlls
,
register_dlls_callback
,
&
info
))
...
...
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