mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[SYSSETUP]
Reorder closing of handles (the service handle then the SCM handle), it clarifies the logic (but not change it dramatically). [RSYM64] Correct a misspelling, no code change. svn path=/trunk/; revision=58488
This commit is contained in:
parent
9156f1fe0f
commit
7f6b593bb0
2 changed files with 3 additions and 3 deletions
|
@ -439,10 +439,10 @@ EnableUserModePnpManager(VOID)
|
||||||
bRet = TRUE;
|
bRet = TRUE;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
if (hSCManager != NULL)
|
|
||||||
CloseServiceHandle(hSCManager);
|
|
||||||
if (hService != NULL)
|
if (hService != NULL)
|
||||||
CloseServiceHandle(hService);
|
CloseServiceHandle(hService);
|
||||||
|
if (hSCManager != NULL)
|
||||||
|
CloseServiceHandle(hSCManager);
|
||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -787,7 +787,7 @@ ParsePEHeaders(PFILE_INFO File)
|
||||||
File->UsedSections = 0;
|
File->UsedSections = 0;
|
||||||
File->eh_frame.idx = -1;
|
File->eh_frame.idx = -1;
|
||||||
|
|
||||||
/* Allocate array of chars, specifiying wheter to copy the section */
|
/* Allocate array of chars, specifiying whether to copy the section */
|
||||||
File->UseSection = malloc(File->AllSections);
|
File->UseSection = malloc(File->AllSections);
|
||||||
|
|
||||||
for (i = 0; i < File->AllSections; i++)
|
for (i = 0; i < File->AllSections; i++)
|
||||||
|
|
Loading…
Reference in a new issue