From a6f55d8cf7624b8436df83e3b86fb46794b49fb3 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 27 May 2002 18:24:44 +0000 Subject: [PATCH] Fixed creation of paging file in SmPagingFilesQueryRoutine. svn path=/trunk/; revision=2987 --- reactos/subsys/smss/init.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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); }