From: Alexandre Julliard Subject: Re: [PATCH] kernel32: CreateDirectory shouldn't return ERROR_ACCESS_DENIED for the root of the drive. Message-Id: <87sgz4dvei.fsf@winehq.org> Date: Tue, 11 Dec 2018 14:51:01 +0100 In-Reply-To: <20181211130332.df4244c0451dcacab0fe4803@baikal.ru> (Dmitry Timoshkov's message of "Tue, 11 Dec 2018 13:03:32 +0300") References: <20181211130332.df4244c0451dcacab0fe4803@baikal.ru> Dmitry Timoshkov writes: > According to the testbot results CreateDirectory("C:\\", NULL) fails > with ERROR_ACCESS_DENIED for not administrators. However with UAC enabled > and not and administrator account I get ERROR_ALREADY_EXISTS in that case > with Windows 7 64-bit running on real hardware. Moreover, Wine doesn't > really perform any access checks in that case and blindly assumes that > returning STATUS_ACCESS_DENIED is correct behaviour for the drive's root: > dlls/ntdll/directory.c,lookup_unix_name(). > > This patch fixes an application that can't find its data files because > after it receives ERROR_ACCESS_DENIED it stops further directory traversing. What app is that? Does it fail on Windows when not administrator? -- Alexandre Julliard julliard@winehq.org