Alexandre Julliard : kernel32: Initialize MaximumLength of the user params directory too.

Alexandre Julliard julliard at winehq.org
Mon Dec 24 14:21:30 CST 2007


Module: wine
Branch: master
Commit: 28aed6d9c886cd566d27e9aff162203be2ad0959
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=28aed6d9c886cd566d27e9aff162203be2ad0959

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Sun Dec 23 13:54:31 2007 +0100

kernel32: Initialize MaximumLength of the user params directory too.

---

 dlls/kernel32/process.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 4a97ec3..84291c3 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -1194,6 +1194,7 @@ static RTL_USER_PROCESS_PARAMETERS *create_user_params( LPCWSTR filename, LPCWST
             /* skip \??\ prefix */
             curdir_str.Buffer = newdir.Buffer + 4;
             curdir_str.Length = newdir.Length - 4 * sizeof(WCHAR);
+            curdir_str.MaximumLength = newdir.MaximumLength - 4 * sizeof(WCHAR);
         }
         else cur_dir = NULL;
     }




More information about the wine-cvs mailing list