• Dmitry Timoshkov's avatar
    kernel32: CreateDirectory shouldn't return ERROR_ACCESS_DENIED for the root of the drive. · c26b6afa
    Dmitry Timoshkov authored
    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.
    Signed-off-by: 's avatarDmitry Timoshkov <dmitry@baikal.ru>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    c26b6afa
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...