diff --git a/reactos/subsys/smss/init.c b/reactos/subsys/smss/init.c index 0cc5845dd47..2aa4eb61ad6 100644 --- a/reactos/subsys/smss/init.c +++ b/reactos/subsys/smss/init.c @@ -1,4 +1,4 @@ -/* $Id: init.c,v 1.36 2002/05/24 18:07:56 ekohl Exp $ +/* $Id: init.c,v 1.37 2002/05/27 18:24:44 hbirr Exp $ * * init.c - Session Manager initialization * @@ -397,9 +397,6 @@ SmPagingFilesQueryRoutine(PWSTR ValueName, return(STATUS_SUCCESS); } - RtlInitUnicodeString(&FileName, - (PWSTR)ValueData); - /* * FIXME: * read initial and maximum size from the registry or use default values @@ -407,6 +404,14 @@ SmPagingFilesQueryRoutine(PWSTR ValueName, * Format: "[ [ ]]" */ + if (!RtlDosPathNameToNtPathName_U ((LPWSTR)ValueData, + &FileName, + NULL, + NULL)) + { + return (STATUS_SUCCESS); + } + InitialSize.QuadPart = 50 * 4096; MaximumSize.QuadPart = 80 * 4096; @@ -415,6 +420,8 @@ SmPagingFilesQueryRoutine(PWSTR ValueName, &MaximumSize, 0); + RtlFreeUnicodeString(&FileName); + return(STATUS_SUCCESS); }