mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 23:53:07 +00:00
[SETUPLIB] Introduce and use a UnMapAndCloseFile() macro that calls UnMapFile() and NtClose() on handles returned by the OpenAndMapFile() function.
svn path=/branches/setup_improvements/; revision=75651 svn path=/branches/setup_improvements/; revision=75657
This commit is contained in:
parent
29fe31df1b
commit
a80f803a2a
5 changed files with 18 additions and 12 deletions
|
@ -373,8 +373,7 @@ Quit:
|
|||
}
|
||||
|
||||
/* Finally, unmap and close the file */
|
||||
UnMapFile(SectionHandle, ViewBase);
|
||||
NtClose(UnattendFileHandle);
|
||||
UnMapAndCloseFile(UnattendFileHandle, SectionHandle, ViewBase);
|
||||
|
||||
NtClose(FileHandle);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue