diff --git a/reactos/dll/win32/syssetup/install.c b/reactos/dll/win32/syssetup/install.c index 43867e28427..4869e8ee8f8 100644 --- a/reactos/dll/win32/syssetup/install.c +++ b/reactos/dll/win32/syssetup/install.c @@ -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; } diff --git a/reactos/tools/rsym/rsym64.c b/reactos/tools/rsym/rsym64.c index 3c08ce1c324..746e5e4cfd0 100644 --- a/reactos/tools/rsym/rsym64.c +++ b/reactos/tools/rsym/rsym64.c @@ -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++)