Commit fe0460fd authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Added some traces to kernel file functions.

parent eb04fd22
......@@ -1398,6 +1398,8 @@ HANDLE WINAPI FindFirstFileExW( LPCWSTR filename, FINDEX_INFO_LEVELS level,
IO_STATUS_BLOCK io;
NTSTATUS status;
TRACE("%s %d %p %d %p %lx\n", debugstr_w(filename), level, data, search_op, filter, flags);
if ((search_op != FindExSearchNameMatch) || (flags != 0))
{
FIXME("options not implemented 0x%08x 0x%08lx\n", search_op, flags );
......@@ -1495,6 +1497,8 @@ BOOL WINAPI FindNextFileW( HANDLE handle, WIN32_FIND_DATAW *data )
FILE_BOTH_DIR_INFORMATION *dir_info;
BOOL ret = FALSE;
TRACE("%p %p\n", handle, data);
if (handle == INVALID_HANDLE_VALUE)
{
SetLastError( ERROR_INVALID_HANDLE );
......@@ -1679,6 +1683,8 @@ DWORD WINAPI GetFileAttributesW( LPCWSTR name )
OBJECT_ATTRIBUTES attr;
NTSTATUS status;
TRACE("%s\n", debugstr_w(name));
if (!RtlDosPathNameToNtPathName_U( name, &nt_name, NULL, NULL ))
{
SetLastError( ERROR_PATH_NOT_FOUND );
......@@ -1728,6 +1734,8 @@ BOOL WINAPI SetFileAttributesW( LPCWSTR name, DWORD attributes )
NTSTATUS status;
HANDLE handle;
TRACE("%s %lx\n", debugstr_w(name), attributes);
if (!RtlDosPathNameToNtPathName_U( name, &nt_name, NULL, NULL ))
{
SetLastError( ERROR_PATH_NOT_FOUND );
......@@ -1783,6 +1791,8 @@ BOOL WINAPI GetFileAttributesExW( LPCWSTR name, GET_FILEEX_INFO_LEVELS level, LP
OBJECT_ATTRIBUTES attr;
NTSTATUS status;
TRACE("%s %d %p\n", debugstr_w(name), level, ptr);
if (level != GetFileExInfoStandard)
{
SetLastError( ERROR_INVALID_PARAMETER );
......@@ -1854,6 +1864,8 @@ DWORD WINAPI GetCompressedFileSizeW(
HANDLE handle;
DWORD ret = INVALID_FILE_SIZE;
TRACE("%s %p\n", debugstr_w(name), size_high);
if (!RtlDosPathNameToNtPathName_U( name, &nt_name, NULL, NULL ))
{
SetLastError( ERROR_PATH_NOT_FOUND );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment