diff --git a/reactos/lib/ntdll/csr/lpc.c b/reactos/lib/ntdll/csr/lpc.c index 2689468f3ea..a27562ce288 100644 --- a/reactos/lib/ntdll/csr/lpc.c +++ b/reactos/lib/ntdll/csr/lpc.c @@ -114,7 +114,7 @@ NTSTATUS STDCALL CsrClientConnectToServer(VOID) { NTSTATUS Status; - UNICODE_STRING PortName; + UNICODE_STRING PortName = RTL_CONSTANT_STRING(L"\\Windows\\ApiPort"); ULONG ConnectInfoLength; CSRSS_API_REQUEST Request; CSRSS_API_REPLY Reply; @@ -139,7 +139,6 @@ CsrClientConnectToServer(VOID) { return(Status); } - RtlRosInitUnicodeStringFromLiteral(&PortName, L"\\Windows\\ApiPort"); ConnectInfoLength = 0; LpcWrite.Length = sizeof(LPC_SECTION_WRITE); LpcWrite.SectionHandle = CsrSectionHandle; diff --git a/reactos/lib/ntdll/dbg/debug.c b/reactos/lib/ntdll/dbg/debug.c index 2b4cf258343..a138146acae 100644 --- a/reactos/lib/ntdll/dbg/debug.c +++ b/reactos/lib/ntdll/dbg/debug.c @@ -82,7 +82,7 @@ DbgSsInitialize(HANDLE ReplyPort, ULONG Unknown3) { SECURITY_QUALITY_OF_SERVICE Qos; - UNICODE_STRING PortName = ROS_STRING_INITIALIZER(L"\\DbgSsApiPort"); + UNICODE_STRING PortName = RTL_CONSTANT_STRING(L"\\DbgSsApiPort"); NTSTATUS Status; Qos.Length = sizeof(SECURITY_QUALITY_OF_SERVICE); @@ -128,7 +128,7 @@ NTSTATUS STDCALL DbgUiConnectToDbg(VOID) { SECURITY_QUALITY_OF_SERVICE Qos; - UNICODE_STRING PortName = ROS_STRING_INITIALIZER(L"\\DbgUiApiPort"); + UNICODE_STRING PortName = RTL_CONSTANT_STRING(L"\\DbgUiApiPort"); NTSTATUS Status; PTEB Teb; ULONG InfoSize; diff --git a/reactos/lib/ntdll/inc/ntdll.h b/reactos/lib/ntdll/inc/ntdll.h index 4fc90fc47ed..e03524340ec 100644 --- a/reactos/lib/ntdll/inc/ntdll.h +++ b/reactos/lib/ntdll/inc/ntdll.h @@ -13,6 +13,9 @@ #define NTOS_MODE_USER #include +/* Helper Macros */ +#include + /* NTDLL Public Headers. FIXME: Combine/clean these after NDK */ #include #include @@ -20,17 +23,4 @@ #include #include /* FIXME REMOVE THIS */ -/* ROSRTL Headers */ -#include /* FIXME: KILL ROSRTL */ - -/* Helper Macros FIXME: NDK */ -#define ROUNDUP(a,b) ((((a)+(b)-1)/(b))*(b)) -#define ROUND_DOWN(N, S) ((N) - ((N) % (S))) -#ifndef HIWORD -#define HIWORD(l) ((WORD)(((DWORD)(l) >> 16) & 0xFFFF)) -#endif -#ifndef LOWORD -#define LOWORD(l) ((WORD)(l)) -#endif - /* EOF */ diff --git a/reactos/lib/ntdll/ldr/startup.c b/reactos/lib/ntdll/ldr/startup.c index 533ce848abc..8770ef23390 100644 --- a/reactos/lib/ntdll/ldr/startup.c +++ b/reactos/lib/ntdll/ldr/startup.c @@ -105,7 +105,8 @@ LoadCompatibilitySettings(PPEB Peb) HANDLE KeyHandle; HANDLE SubKeyHandle; OBJECT_ATTRIBUTES ObjectAttributes; - UNICODE_STRING KeyName; + UNICODE_STRING KeyName = RTL_CONSTANT_STRING( + L"Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"); UNICODE_STRING ValueName; UCHAR ValueBuffer[VALUE_BUFFER_SIZE]; PKEY_VALUE_PARTIAL_INFORMATION ValueInfo; @@ -123,9 +124,6 @@ LoadCompatibilitySettings(PPEB Peb) return FALSE; } - RtlRosInitUnicodeStringFromLiteral(&KeyName, - L"Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"); - InitializeObjectAttributes(&ObjectAttributes, &KeyName, OBJ_CASE_INSENSITIVE,