• 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
..
nls Loading commit data...
tests Loading commit data...
Makefile.in Loading commit data...
actctx.c Loading commit data...
atom.c Loading commit data...
change.c Loading commit data...
comm.c Loading commit data...
computername.c Loading commit data...
console.c Loading commit data...
console_private.h Loading commit data...
cpu.c Loading commit data...
debugger.c Loading commit data...
editline.c Loading commit data...
environ.c Loading commit data...
except.c Loading commit data...
fiber.c Loading commit data...
file.c Loading commit data...
format_msg.c Loading commit data...
heap.c Loading commit data...
kernel32.spec Loading commit data...
kernel_main.c Loading commit data...
kernel_private.h Loading commit data...
lcformat.c Loading commit data...
locale.c Loading commit data...
locale_rc.rc Loading commit data...
lzexpand.c Loading commit data...
module.c Loading commit data...
nameprep.c Loading commit data...
oldconfig.c Loading commit data...
path.c Loading commit data...
powermgnt.c Loading commit data...
process.c Loading commit data...
profile.c Loading commit data...
resource.c Loading commit data...
string.c Loading commit data...
sync.c Loading commit data...
tape.c Loading commit data...
term.c Loading commit data...
thread.c Loading commit data...
time.c Loading commit data...
toolhelp.c Loading commit data...
version.c Loading commit data...
version.rc Loading commit data...
virtual.c Loading commit data...
volume.c Loading commit data...
wer.c Loading commit data...
winerror.mc Loading commit data...