kernel32: Create the windows and system directories if necessary.

This commit is contained in:
Alexandre Julliard 2008-04-17 20:33:47 +02:00
parent af5e168f16
commit 05e55edd82
1 changed files with 6 additions and 6 deletions

View File

@ -715,12 +715,12 @@ static void init_windows_dirs(void)
DIR_System = buffer;
}
if (GetFileAttributesW( DIR_Windows ) == INVALID_FILE_ATTRIBUTES)
MESSAGE( "Warning: the specified Windows directory %s is not accessible.\n",
debugstr_w(DIR_Windows) );
if (GetFileAttributesW( DIR_System ) == INVALID_FILE_ATTRIBUTES)
MESSAGE( "Warning: the specified System directory %s is not accessible.\n",
debugstr_w(DIR_System) );
if (!CreateDirectoryW( DIR_Windows, NULL ) && GetLastError() != ERROR_ALREADY_EXISTS)
ERR( "directory %s could not be created, error %u\n",
debugstr_w(DIR_Windows), GetLastError() );
if (!CreateDirectoryW( DIR_System, NULL ) && GetLastError() != ERROR_ALREADY_EXISTS)
ERR( "directory %s could not be created, error %u\n",
debugstr_w(DIR_System), GetLastError() );
TRACE_(file)( "WindowsDir = %s\n", debugstr_w(DIR_Windows) );
TRACE_(file)( "SystemDir = %s\n", debugstr_w(DIR_System) );