[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Argument count differs in .spec files
From:       Slava Monich <Slava.Monich () netmanage ! com>
Date:       1999-07-28 21:55:37
[Download RAW message or body]

Patrik Stridvall wrote:
> 
> I have made a script (will submit later) that checks for issues due to spec
> file, implementation mismatch.
> 
> Some of them I have fixed myself . But these I couldn't fix due to lack of
> documentation.
> I don't know if the spec file or the implementation is wrong is these cases,
> of course my script might be wrong too, so be careful.
> 
> Does anybody else has any documentation?
> 
> ./dlls/ntdll/file.c: win32:
> NtSetVolumeInformationFile(HANDLE,PVOID,PVOID,ULONG): argument count
> differs: 4 != 5

the correct prototype is

NTSTATUS
NtSetVolumeInformationFile(HANDLE,PIO_STATUS_BLOCK,PVOID,ULONG,
                           FS_INFORMATION_CLASS)

> ./dlls/ntdll/reg.c: win32:
> NtQueryKey(HANDLE,KEY_INFORMATION_CLASS,PVOID,ULONG,PULONG): argument count
> differs: 5 != 4

this prototype is correct

> ./dlls/ntdll/nt.c: win32:
> NtCreateTimer(PHANDLE,ACCESS_MASK,POBJECT_ATTRIBUTES,TIMER_TYPE): argument
> count differs: 4 != 3

correct

> ./dlls/ntdll/nt.c: win32:
> NtSetTimer(HANDLE,PLARGE_INTEGER,PTIMERAPCROUTINE,PVOID,BOOLEAN,ULONG,PBOOLE
> AN): argument count differs: 7 != 6

OK

> ./dlls/ntdll/rtl.c: win32:
> RtlCreateHeap(ULONG,PVOID,ULONG,ULONG,PVOID,PRTL_HEAP_DEFINITION): argument
> count differs: 6 != 5

OK

> ./dlls/ntdll/rtl.c: win32: RtlFormatCurrentUserKeyPath(DWORD): argument
> count differs: 1 != 0

the correct prototype is
NTSTATUS RtlFormatCurrentUserKeyPath(PUNICODE_STRING)


=========================================================================

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic