kernel32/tests: Use a pointer instead of an array to make gcc happy.

This commit is contained in:
Alexandre Julliard 2014-10-28 15:59:55 +09:00
parent 1555f29fc6
commit 3e1c4908ef
1 changed files with 2 additions and 3 deletions

View File

@ -2055,7 +2055,6 @@ static void run_child_process(void)
static void init_paths(void)
{
LPWSTR ptr;
WCHAR last;
static const WCHAR dot_manifest[] = {'.','M','a','n','i','f','e','s','t',0};
static const WCHAR backslash[] = {'\\',0};
@ -2067,8 +2066,8 @@ static void init_paths(void)
ptr[1] = 0;
GetCurrentDirectoryW(MAX_PATH, work_dir);
last = work_dir[lstrlenW(work_dir) - 1];
if (last != '\\' && last != '/')
ptr = work_dir + lstrlenW( work_dir ) - 1;
if (*ptr != '\\' && *ptr != '/')
lstrcatW(work_dir, backslash);
lstrcpyW(work_dir_subdir, work_dir);
lstrcatW(work_dir_subdir, subdir);