Re: [PATCH 5/5] kernel32: Added implementation for OpenFileById.

2012-10-10 Thread Dmitry Timoshkov
"Vincas Miliūnas" wrote: > >> +objectName.Buffer = (WCHAR > >> *)&lpFileID->DUMMYUNIONNAME.FileId; > > This doesn't look right. > That's how the pointer to the fileid is transported, see the > file_id_to_unix_file_name function in ntdll/directory.c I meant DUMMYUNIONNAME. -- D

Re: [PATCH 5/5] kernel32: Added implementation for OpenFileById.

2012-10-10 Thread Vincas Miliūnas
On 10/10/2012 05:45 AM, Dmitry Timoshkov wrote: > "Vincas Miliūnas" wrote: > >> +objectName.Buffer = (WCHAR >> *)&lpFileID->DUMMYUNIONNAME.FileId; > This doesn't look right. That's how the pointer to the fileid is transported, see the file_id_to_unix_file_name function in ntdll/di

Re: [PATCH 5/5] kernel32: Added implementation for OpenFileById.

2012-10-09 Thread Dmitry Timoshkov
"Vincas Miliūnas" wrote: > +objectName.Buffer = (WCHAR > *)&lpFileID->DUMMYUNIONNAME.FileId; This doesn't look right. > +if (status) > +{ > +SetLastError( RtlNtStatusToDosError( status ) ); > +return INVALID_HANDLE_VALUE; > +} > +else if (!result