diff --git a/reactos/subsys/system/directory.xml b/reactos/subsys/system/directory.xml index ee7451715c7..ce318339fc6 100644 --- a/reactos/subsys/system/directory.xml +++ b/reactos/subsys/system/directory.xml @@ -13,12 +13,6 @@ - - - - - - diff --git a/reactos/subsys/system/services/database.c b/reactos/subsys/system/services/database.c index 134a14c75a2..c5d8e2ca3e6 100644 --- a/reactos/subsys/system/services/database.c +++ b/reactos/subsys/system/services/database.c @@ -28,8 +28,6 @@ #include "services.h" #include -#include - #define NDEBUG #include @@ -298,7 +296,8 @@ ScmCreateServiceDataBase(VOID) { RTL_QUERY_REGISTRY_TABLE QueryTable[2]; OBJECT_ATTRIBUTES ObjectAttributes; - UNICODE_STRING ServicesKeyName; + UNICODE_STRING ServicesKeyName = + RTL_CONSTANT_STRING(L"\\Registry\\Machine\\System\\CurrentControlSet\\Services"); UNICODE_STRING SubKeyName; HKEY ServicesKey; ULONG Index; @@ -329,9 +328,6 @@ ScmCreateServiceDataBase(VOID) if (!NT_SUCCESS(Status)) return Status; - RtlRosInitUnicodeStringFromLiteral(&ServicesKeyName, - L"\\Registry\\Machine\\System\\CurrentControlSet\\Services"); - InitializeObjectAttributes(&ObjectAttributes, &ServicesKeyName, OBJ_CASE_INSENSITIVE, @@ -417,12 +413,12 @@ ScmCheckDriver(PSERVICE Service) if (Service->Type == SERVICE_KERNEL_DRIVER) { - RtlRosInitUnicodeStringFromLiteral(&DirName, + RtlInitUnicodeString(&DirName, L"\\Driver"); } else { - RtlRosInitUnicodeStringFromLiteral(&DirName, + RtlInitUnicodeString(&DirName, L"\\FileSystem"); } diff --git a/reactos/subsys/system/sndvol32/sndvol32.h b/reactos/subsys/system/sndvol32/sndvol32.h index 3a21af00a45..56937b9d7ba 100644 --- a/reactos/subsys/system/sndvol32/sndvol32.h +++ b/reactos/subsys/system/sndvol32/sndvol32.h @@ -7,7 +7,6 @@ #include #include #include -#include #include "resources.h" typedef struct _MIXER_WINDOW diff --git a/reactos/subsys/system/taskmgr/font.c b/reactos/subsys/system/taskmgr/font.c index 59d119627c5..1f599161fec 100644 --- a/reactos/subsys/system/taskmgr/font.c +++ b/reactos/subsys/system/taskmgr/font.c @@ -37,11 +37,11 @@ void Font_DrawText(HDC hDC, LPCTSTR lpszText, int x, int y) if ((lpszText[i] >= '0') && (lpszText[i] <= '9')) { BitBlt(hDC, x + (i * 8), y, 8, 11, hFontDC, (lpszText[i] - '0') * 8, 0, SRCCOPY); } - else if (lpszText[i] == 'K') + else if (lpszText[i] == '%') { BitBlt(hDC, x + (i * 8), y, 8, 11, hFontDC, 80, 0, SRCCOPY); } - else if (lpszText[i] == '%') + else if (lpszText[i] == 'K') { BitBlt(hDC, x + (i * 8), y, 8, 11, hFontDC, 88, 0, SRCCOPY); }