• 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
..
tests Loading commit data...
Makefile.in Loading commit data...
actctx.c Loading commit data...
atom.c Loading commit data...
cdrom.c Loading commit data...
critsection.c Loading commit data...
debugbuffer.c Loading commit data...
debugtools.c Loading commit data...
directory.c Loading commit data...
env.c Loading commit data...
error.c Loading commit data...
exception.c Loading commit data...
file.c Loading commit data...
handletable.c Loading commit data...
heap.c Loading commit data...
large_int.c Loading commit data...
loader.c Loading commit data...
loadorder.c Loading commit data...
misc.c Loading commit data...
nt.c Loading commit data...
ntdll.spec Loading commit data...
ntdll_misc.h Loading commit data...
om.c Loading commit data...
path.c Loading commit data...
printf.c Loading commit data...
process.c Loading commit data...
reg.c Loading commit data...
relay.c Loading commit data...
resource.c Loading commit data...
rtl.c Loading commit data...
rtlbitmap.c Loading commit data...
rtlstr.c Loading commit data...
sec.c Loading commit data...
serial.c Loading commit data...
server.c Loading commit data...
signal_arm.c Loading commit data...
signal_arm64.c Loading commit data...
signal_i386.c Loading commit data...
signal_powerpc.c Loading commit data...
signal_x86_64.c Loading commit data...
string.c Loading commit data...
sync.c Loading commit data...
tape.c Loading commit data...
thread.c Loading commit data...
threadpool.c Loading commit data...
time.c Loading commit data...
version.c Loading commit data...
version.rc Loading commit data...
virtual.c Loading commit data...
wcstring.c Loading commit data...