[RTL]
[reactos.git] / reactos / lib / rtl / ppb.c
index 39fb921..17b4ffa 100644 (file)
@@ -26,7 +26,7 @@ static __inline VOID
 RtlpCopyParameterString(PWCHAR *Ptr,
                        PUNICODE_STRING Destination,
                        PUNICODE_STRING Source,
-                       ULONG Size)
+                       USHORT Size)
 {
    Destination->Length = Source->Length;
    Destination->MaximumLength = Size ? Size : Source->MaximumLength;
@@ -147,8 +147,6 @@ RtlCreateProcessParameters(PRTL_USER_PROCESS_PARAMETERS *ProcessParameters,
    /* make sure the current directory has a trailing backslash */
    if (Param->CurrentDirectory.DosPath.Length > 0)
      {
-       ULONG Length;
-
        Length = Param->CurrentDirectory.DosPath.Length / sizeof(WCHAR);
        if (Param->CurrentDirectory.DosPath.Buffer[Length-1] != L'\\')
          {