[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:
Hermès Bélusca-Maïto 2013-03-13 20:40:43 +00:00
parent 9156f1fe0f
commit 7f6b593bb0
2 changed files with 3 additions and 3 deletions

View file

@ -439,10 +439,10 @@ EnableUserModePnpManager(VOID)
bRet = TRUE;
cleanup:
if (hSCManager != NULL)
CloseServiceHandle(hSCManager);
if (hService != NULL)
CloseServiceHandle(hService);
if (hSCManager != NULL)
CloseServiceHandle(hSCManager);
return bRet;
}

View file

@ -787,7 +787,7 @@ ParsePEHeaders(PFILE_INFO File)
File->UsedSections = 0;
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);
for (i = 0; i < File->AllSections; i++)