Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ed800c69
Commit
ed800c69
authored
Nov 21, 2002
by
Andrew John Hughes
Committed by
Alexandre Julliard
Nov 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build ntdll with -DSTRICT.
parent
82aeebd7
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
148 additions
and
145 deletions
+148
-145
Makefile.in
dlls/ntdll/Makefile.in
+1
-1
file.c
dlls/ntdll/file.c
+10
-10
heap.c
dlls/ntdll/heap.c
+10
-10
misc.c
dlls/ntdll/misc.c
+1
-1
nt.c
dlls/ntdll/nt.c
+12
-12
om.c
dlls/ntdll/om.c
+5
-5
reg.c
dlls/ntdll/reg.c
+17
-17
rtl.c
dlls/ntdll/rtl.c
+1
-1
sec.c
dlls/ntdll/sec.c
+2
-2
sync.c
dlls/ntdll/sync.c
+3
-3
virtual.c
dlls/ntdll/virtual.c
+3
-3
dos_fs.c
files/dos_fs.c
+2
-2
file.c
files/file.c
+17
-17
smb.c
files/smb.c
+2
-2
tape.c
files/tape.c
+12
-12
module.c
loader/module.c
+5
-5
module.c
loader/ne/module.c
+2
-2
resource.c
loader/ne/resource.c
+1
-1
segment.c
loader/ne/segment.c
+1
-1
pe_image.c
loader/pe_image.c
+2
-2
resource.c
loader/resource.c
+12
-9
global.c
memory/global.c
+1
-1
registry.c
misc/registry.c
+1
-1
builtin32.c
relay32/builtin32.c
+1
-1
snoop.c
relay32/snoop.c
+1
-1
handle.c
scheduler/handle.c
+2
-2
process.c
scheduler/process.c
+4
-4
syslevel.c
scheduler/syslevel.c
+1
-1
thread.c
scheduler/thread.c
+2
-2
device.c
win32/device.c
+9
-9
except.c
win32/except.c
+2
-2
newfns.c
win32/newfns.c
+3
-3
No files found.
dlls/ntdll/Makefile.in
View file @
ed800c69
EXTRADEFS
=
-D_NTSYSTEM_
-DBINDIR
=
"
\"
$(bindir)
\"
"
-DETCDIR
=
"
\"
$(sysconfdir)
\"
"
-DWINE_NO_STRICT
EXTRADEFS
=
-D_NTSYSTEM_
-DBINDIR
=
"
\"
$(bindir)
\"
"
-DETCDIR
=
"
\"
$(sysconfdir)
\"
"
TOPSRCDIR
=
@top_srcdir@
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
...
...
dlls/ntdll/file.c
View file @
ed800c69
...
@@ -74,7 +74,7 @@ NTSTATUS WINAPI NtOpenFile(
...
@@ -74,7 +74,7 @@ NTSTATUS WINAPI NtOpenFile(
if
(
ObjectAttributes
->
RootDirectory
)
if
(
ObjectAttributes
->
RootDirectory
)
{
{
FIXME
(
"Object root directory unknown %
x
\n
"
,
FIXME
(
"Object root directory unknown %
p
\n
"
,
ObjectAttributes
->
RootDirectory
);
ObjectAttributes
->
RootDirectory
);
return
STATUS_OBJECT_NAME_NOT_FOUND
;
return
STATUS_OBJECT_NAME_NOT_FOUND
;
}
}
...
@@ -210,7 +210,7 @@ NTSTATUS WINAPI NtReadFile (
...
@@ -210,7 +210,7 @@ NTSTATUS WINAPI NtReadFile (
int
fd
,
result
,
flags
,
ret
;
int
fd
,
result
,
flags
,
ret
;
enum
fd_type
type
;
enum
fd_type
type
;
FIXME
(
"(0x%
08x,0x%08x
,%p,%p,%p,%p,0x%08lx,%p,%p),partial stub!
\n
"
,
FIXME
(
"(0x%
p,0x%p
,%p,%p,%p,%p,0x%08lx,%p,%p),partial stub!
\n
"
,
FileHandle
,
EventHandle
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
Buffer
,
Length
,
ByteOffset
,
Key
);
FileHandle
,
EventHandle
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
Buffer
,
Length
,
ByteOffset
,
Key
);
if
(
IsBadWritePtr
(
Buffer
,
Length
)
||
if
(
IsBadWritePtr
(
Buffer
,
Length
)
||
...
@@ -273,7 +273,7 @@ NTSTATUS WINAPI NtWriteFile (
...
@@ -273,7 +273,7 @@ NTSTATUS WINAPI NtWriteFile (
PLARGE_INTEGER
ByteOffset
,
PLARGE_INTEGER
ByteOffset
,
PULONG
Key
)
PULONG
Key
)
{
{
FIXME
(
"(0x%
08x,0x%08x
,%p,%p,%p,%p,0x%08lx,%p,%p),stub!
\n
"
,
FIXME
(
"(0x%
p,0x%p
,%p,%p,%p,%p,0x%08lx,%p,%p),stub!
\n
"
,
FileHandle
,
EventHandle
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
Buffer
,
Length
,
ByteOffset
,
Key
);
FileHandle
,
EventHandle
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
Buffer
,
Length
,
ByteOffset
,
Key
);
return
0
;
return
0
;
}
}
...
@@ -294,7 +294,7 @@ NTSTATUS WINAPI NtDeviceIoControlFile(
...
@@ -294,7 +294,7 @@ NTSTATUS WINAPI NtDeviceIoControlFile(
OUT
PVOID
OutputBuffer
,
OUT
PVOID
OutputBuffer
,
IN
ULONG
OutputBufferSize
)
IN
ULONG
OutputBufferSize
)
{
{
FIXME
(
"(0x%
08x,0x%08x
,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): empty stub
\n
"
,
FIXME
(
"(0x%
p,0x%p
,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): empty stub
\n
"
,
DeviceHandle
,
Event
,
UserApcRoutine
,
UserApcContext
,
DeviceHandle
,
Event
,
UserApcRoutine
,
UserApcContext
,
IoStatusBlock
,
IoControlCode
,
InputBuffer
,
InputBufferSize
,
OutputBuffer
,
OutputBufferSize
);
IoStatusBlock
,
IoControlCode
,
InputBuffer
,
InputBufferSize
,
OutputBuffer
,
OutputBufferSize
);
return
0
;
return
0
;
...
@@ -316,7 +316,7 @@ NTSTATUS WINAPI NtFsControlFile(
...
@@ -316,7 +316,7 @@ NTSTATUS WINAPI NtFsControlFile(
OUT
PVOID
OutputBuffer
,
OUT
PVOID
OutputBuffer
,
IN
ULONG
OutputBufferSize
)
IN
ULONG
OutputBufferSize
)
{
{
FIXME
(
"(0x%
08x,0x%08x
,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): stub
\n
"
,
FIXME
(
"(0x%
p,0x%p
,%p,%p,%p,0x%08lx,%p,0x%08lx,%p,0x%08lx): stub
\n
"
,
DeviceHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
IoControlCode
,
DeviceHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
IoControlCode
,
InputBuffer
,
InputBufferSize
,
OutputBuffer
,
OutputBufferSize
);
InputBuffer
,
InputBufferSize
,
OutputBuffer
,
OutputBufferSize
);
return
0
;
return
0
;
...
@@ -333,7 +333,7 @@ NTSTATUS WINAPI NtSetVolumeInformationFile(
...
@@ -333,7 +333,7 @@ NTSTATUS WINAPI NtSetVolumeInformationFile(
ULONG
Length
,
ULONG
Length
,
FS_INFORMATION_CLASS
FsInformationClass
)
FS_INFORMATION_CLASS
FsInformationClass
)
{
{
FIXME
(
"(0x%
08x
,%p,%p,0x%08lx,0x%08x) stub
\n
"
,
FIXME
(
"(0x%
p
,%p,%p,0x%08lx,0x%08x) stub
\n
"
,
FileHandle
,
IoStatusBlock
,
FsInformation
,
Length
,
FsInformationClass
);
FileHandle
,
IoStatusBlock
,
FsInformation
,
Length
,
FsInformationClass
);
return
0
;
return
0
;
}
}
...
@@ -349,7 +349,7 @@ NTSTATUS WINAPI NtQueryInformationFile(
...
@@ -349,7 +349,7 @@ NTSTATUS WINAPI NtQueryInformationFile(
ULONG
Length
,
ULONG
Length
,
FILE_INFORMATION_CLASS
FileInformationClass
)
FILE_INFORMATION_CLASS
FileInformationClass
)
{
{
FIXME
(
"(0x%
08x
,%p,%p,0x%08lx,0x%08x),stub!
\n
"
,
FIXME
(
"(0x%
p
,%p,%p,0x%08lx,0x%08x),stub!
\n
"
,
FileHandle
,
IoStatusBlock
,
FileInformation
,
Length
,
FileInformationClass
);
FileHandle
,
IoStatusBlock
,
FileInformation
,
Length
,
FileInformationClass
);
return
0
;
return
0
;
}
}
...
@@ -365,7 +365,7 @@ NTSTATUS WINAPI NtSetInformationFile(
...
@@ -365,7 +365,7 @@ NTSTATUS WINAPI NtSetInformationFile(
ULONG
Length
,
ULONG
Length
,
FILE_INFORMATION_CLASS
FileInformationClass
)
FILE_INFORMATION_CLASS
FileInformationClass
)
{
{
FIXME
(
"(0x%
08x
,%p,%p,0x%08lx,0x%08x)
\n
"
,
FIXME
(
"(0x%
p
,%p,%p,0x%08lx,0x%08x)
\n
"
,
FileHandle
,
IoStatusBlock
,
FileInformation
,
Length
,
FileInformationClass
);
FileHandle
,
IoStatusBlock
,
FileInformation
,
Length
,
FileInformationClass
);
return
0
;
return
0
;
}
}
...
@@ -388,7 +388,7 @@ NTSTATUS WINAPI NtQueryDirectoryFile(
...
@@ -388,7 +388,7 @@ NTSTATUS WINAPI NtQueryDirectoryFile(
IN
PUNICODE_STRING
FileName
OPTIONAL
,
IN
PUNICODE_STRING
FileName
OPTIONAL
,
IN
BOOLEAN
RestartScan
)
IN
BOOLEAN
RestartScan
)
{
{
FIXME
(
"(0x%
08x 0x%08x
%p %p %p %p 0x%08lx 0x%08x 0x%08x %p 0x%08x
\n
"
,
FIXME
(
"(0x%
p 0x%p
%p %p %p %p 0x%08lx 0x%08x 0x%08x %p 0x%08x
\n
"
,
FileHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
FileInformation
,
FileHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
FileInformation
,
Length
,
FileInformationClass
,
ReturnSingleEntry
,
Length
,
FileInformationClass
,
ReturnSingleEntry
,
debugstr_us
(
FileName
),
RestartScan
);
debugstr_us
(
FileName
),
RestartScan
);
...
@@ -408,7 +408,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile (
...
@@ -408,7 +408,7 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile (
{
{
ULONG
len
=
0
;
ULONG
len
=
0
;
FIXME
(
"(0x%
08x
%p %p 0x%08lx 0x%08x) stub!
\n
"
,
FIXME
(
"(0x%
p
%p %p 0x%08lx 0x%08x) stub!
\n
"
,
FileHandle
,
IoStatusBlock
,
FSInformation
,
Length
,
FSInformationClass
);
FileHandle
,
IoStatusBlock
,
FSInformation
,
Length
,
FSInformationClass
);
switch
(
FSInformationClass
)
switch
(
FSInformationClass
)
...
...
dlls/ntdll/heap.c
View file @
ed800c69
...
@@ -229,7 +229,7 @@ static HEAP *HEAP_GetPtr(
...
@@ -229,7 +229,7 @@ static HEAP *HEAP_GetPtr(
HEAP
*
heapPtr
=
(
HEAP
*
)
heap
;
HEAP
*
heapPtr
=
(
HEAP
*
)
heap
;
if
(
!
heapPtr
||
(
heapPtr
->
magic
!=
HEAP_MAGIC
))
if
(
!
heapPtr
||
(
heapPtr
->
magic
!=
HEAP_MAGIC
))
{
{
ERR
(
"Invalid heap %
08x
!
\n
"
,
heap
);
ERR
(
"Invalid heap %
p
!
\n
"
,
heap
);
return
NULL
;
return
NULL
;
}
}
if
(
TRACE_ON
(
heap
)
&&
!
HEAP_IsRealArena
(
heapPtr
,
0
,
NULL
,
NOISY
))
if
(
TRACE_ON
(
heap
)
&&
!
HEAP_IsRealArena
(
heapPtr
,
0
,
NULL
,
NOISY
))
...
@@ -974,7 +974,7 @@ HANDLE WINAPI RtlDestroyHeap( HANDLE heap )
...
@@ -974,7 +974,7 @@ HANDLE WINAPI RtlDestroyHeap( HANDLE heap )
HEAP
*
heapPtr
=
HEAP_GetPtr
(
heap
);
HEAP
*
heapPtr
=
HEAP_GetPtr
(
heap
);
SUBHEAP
*
subheap
;
SUBHEAP
*
subheap
;
TRACE
(
"%
08x
\n
"
,
heap
);
TRACE
(
"%
p
\n
"
,
heap
);
if
(
!
heapPtr
)
return
heap
;
if
(
!
heapPtr
)
return
heap
;
if
(
heap
==
processHeap
)
return
heap
;
/* cannot delete the main process heap */
if
(
heap
==
processHeap
)
return
heap
;
/* cannot delete the main process heap */
...
@@ -1027,7 +1027,7 @@ PVOID WINAPI RtlAllocateHeap( HANDLE heap, ULONG flags, ULONG size )
...
@@ -1027,7 +1027,7 @@ PVOID WINAPI RtlAllocateHeap( HANDLE heap, ULONG flags, ULONG size )
if
(
!
(
pArena
=
HEAP_FindFreeBlock
(
heapPtr
,
size
,
&
subheap
)))
if
(
!
(
pArena
=
HEAP_FindFreeBlock
(
heapPtr
,
size
,
&
subheap
)))
{
{
TRACE
(
"(%
08x
,%08lx,%08lx): returning NULL
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx): returning NULL
\n
"
,
heap
,
flags
,
size
);
heap
,
flags
,
size
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
flags
&
HEAP_GENERATE_EXCEPTIONS
)
RtlRaiseStatus
(
STATUS_NO_MEMORY
);
if
(
flags
&
HEAP_GENERATE_EXCEPTIONS
)
RtlRaiseStatus
(
STATUS_NO_MEMORY
);
...
@@ -1059,7 +1059,7 @@ PVOID WINAPI RtlAllocateHeap( HANDLE heap, ULONG flags, ULONG size )
...
@@ -1059,7 +1059,7 @@ PVOID WINAPI RtlAllocateHeap( HANDLE heap, ULONG flags, ULONG size )
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
TRACE
(
"(%
08x
,%08lx,%08lx): returning %08lx
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx): returning %08lx
\n
"
,
heap
,
flags
,
size
,
(
DWORD
)(
pInUse
+
1
)
);
heap
,
flags
,
size
,
(
DWORD
)(
pInUse
+
1
)
);
return
(
LPVOID
)(
pInUse
+
1
);
return
(
LPVOID
)(
pInUse
+
1
);
}
}
...
@@ -1090,7 +1090,7 @@ BOOLEAN WINAPI RtlFreeHeap( HANDLE heap, ULONG flags, PVOID ptr )
...
@@ -1090,7 +1090,7 @@ BOOLEAN WINAPI RtlFreeHeap( HANDLE heap, ULONG flags, PVOID ptr )
{
{
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
set_status
(
STATUS_INVALID_PARAMETER
);
set_status
(
STATUS_INVALID_PARAMETER
);
TRACE
(
"(%
08x
,%08lx,%08lx): returning FALSE
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx): returning FALSE
\n
"
,
heap
,
flags
,
(
DWORD
)
ptr
);
heap
,
flags
,
(
DWORD
)
ptr
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -1103,7 +1103,7 @@ BOOLEAN WINAPI RtlFreeHeap( HANDLE heap, ULONG flags, PVOID ptr )
...
@@ -1103,7 +1103,7 @@ BOOLEAN WINAPI RtlFreeHeap( HANDLE heap, ULONG flags, PVOID ptr )
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
TRACE
(
"(%
08x
,%08lx,%08lx): returning TRUE
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx): returning TRUE
\n
"
,
heap
,
flags
,
(
DWORD
)
ptr
);
heap
,
flags
,
(
DWORD
)
ptr
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -1139,7 +1139,7 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, ULONG size
...
@@ -1139,7 +1139,7 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, ULONG size
{
{
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
set_status
(
STATUS_INVALID_PARAMETER
);
set_status
(
STATUS_INVALID_PARAMETER
);
TRACE
(
"(%
08x
,%08lx,%08lx,%08lx): returning NULL
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx,%08lx): returning NULL
\n
"
,
heap
,
flags
,
(
DWORD
)
ptr
,
size
);
heap
,
flags
,
(
DWORD
)
ptr
,
size
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1222,7 +1222,7 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, ULONG size
...
@@ -1222,7 +1222,7 @@ PVOID WINAPI RtlReAllocateHeap( HANDLE heap, ULONG flags, PVOID ptr, ULONG size
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
TRACE
(
"(%
08x
,%08lx,%08lx,%08lx): returning %08lx
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx,%08lx): returning %08lx
\n
"
,
heap
,
flags
,
(
DWORD
)
ptr
,
size
,
(
DWORD
)(
pArena
+
1
)
);
heap
,
flags
,
(
DWORD
)
ptr
,
size
,
(
DWORD
)(
pArena
+
1
)
);
return
(
LPVOID
)(
pArena
+
1
);
return
(
LPVOID
)(
pArena
+
1
);
}
}
...
@@ -1290,7 +1290,7 @@ ULONG WINAPI RtlSizeHeap( HANDLE heap, ULONG flags, PVOID ptr )
...
@@ -1290,7 +1290,7 @@ ULONG WINAPI RtlSizeHeap( HANDLE heap, ULONG flags, PVOID ptr )
}
}
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
if
(
!
(
flags
&
HEAP_NO_SERIALIZE
))
RtlLeaveCriticalSection
(
&
heapPtr
->
critSection
);
TRACE
(
"(%
08x
,%08lx,%08lx): returning %08lx
\n
"
,
TRACE
(
"(%
p
,%08lx,%08lx): returning %08lx
\n
"
,
heap
,
flags
,
(
DWORD
)
ptr
,
ret
);
heap
,
flags
,
(
DWORD
)
ptr
,
ret
);
return
ret
;
return
ret
;
}
}
...
@@ -1332,7 +1332,7 @@ NTSTATUS WINAPI RtlWalkHeap( HANDLE heap, PVOID entry_ptr )
...
@@ -1332,7 +1332,7 @@ NTSTATUS WINAPI RtlWalkHeap( HANDLE heap, PVOID entry_ptr )
if
(
!
entry
->
lpData
)
/* first call (init) ? */
if
(
!
entry
->
lpData
)
/* first call (init) ? */
{
{
TRACE
(
"begin walking of heap 0x%
08x
.
\n
"
,
heap
);
TRACE
(
"begin walking of heap 0x%
p
.
\n
"
,
heap
);
currentheap
=
&
heapPtr
->
subheap
;
currentheap
=
&
heapPtr
->
subheap
;
ptr
=
(
char
*
)
currentheap
+
currentheap
->
headerSize
;
ptr
=
(
char
*
)
currentheap
+
currentheap
->
headerSize
;
}
}
...
...
dlls/ntdll/misc.c
View file @
ed800c69
...
@@ -36,7 +36,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
...
@@ -36,7 +36,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
void
dump_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
oa
)
void
dump_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
oa
)
{
{
if
(
oa
)
if
(
oa
)
TRACE
(
"%p:(name=%s, attr=0x%08lx, hRoot=0x%
08x
, sd=%p)
\n
"
,
TRACE
(
"%p:(name=%s, attr=0x%08lx, hRoot=0x%
p
, sd=%p)
\n
"
,
oa
,
debugstr_us
(
oa
->
ObjectName
),
oa
,
debugstr_us
(
oa
->
ObjectName
),
oa
->
Attributes
,
oa
->
RootDirectory
,
oa
->
SecurityDescriptor
);
oa
->
Attributes
,
oa
->
RootDirectory
,
oa
->
SecurityDescriptor
);
}
}
...
...
dlls/ntdll/nt.c
View file @
ed800c69
...
@@ -65,7 +65,7 @@ NTSTATUS WINAPI NtSetTimer(
...
@@ -65,7 +65,7 @@ NTSTATUS WINAPI NtSetTimer(
IN
ULONG
Period
OPTIONAL
,
IN
ULONG
Period
OPTIONAL
,
OUT
PBOOLEAN
PreviousState
OPTIONAL
)
OUT
PBOOLEAN
PreviousState
OPTIONAL
)
{
{
FIXME
(
"(0x%
08x
,%p,%p,%p,%08x,0x%08lx,%p) stub
\n
"
,
FIXME
(
"(0x%
p
,%p,%p,%p,%08x,0x%08lx,%p) stub
\n
"
,
TimerHandle
,
DueTime
,
TimerApcRoutine
,
TimerContext
,
WakeTimer
,
Period
,
PreviousState
);
TimerHandle
,
DueTime
,
TimerApcRoutine
,
TimerContext
,
WakeTimer
,
Period
,
PreviousState
);
return
0
;
return
0
;
}
}
...
@@ -132,7 +132,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
...
@@ -132,7 +132,7 @@ NTSTATUS WINAPI NtQueryInformationProcess(
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
ret
=
STATUS_INFO_LENGTH_MISMATCH
;
break
;
break
;
default:
default:
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
ProcessHandle
,
ProcessInformationClass
,
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
,
ProcessInformation
,
ProcessInformationLength
,
ReturnLength
ReturnLength
...
@@ -156,7 +156,7 @@ NTSTATUS WINAPI NtSetInformationProcess(
...
@@ -156,7 +156,7 @@ NTSTATUS WINAPI NtSetInformationProcess(
IN
PVOID
ProcessInformation
,
IN
PVOID
ProcessInformation
,
IN
ULONG
ProcessInformationLength
)
IN
ULONG
ProcessInformationLength
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx) stub
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx) stub
\n
"
,
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
);
ProcessHandle
,
ProcessInformationClass
,
ProcessInformation
,
ProcessInformationLength
);
return
0
;
return
0
;
}
}
...
@@ -173,7 +173,7 @@ NTSTATUS WINAPI NtResumeThread(
...
@@ -173,7 +173,7 @@ NTSTATUS WINAPI NtResumeThread(
IN
HANDLE
ThreadHandle
,
IN
HANDLE
ThreadHandle
,
IN
PULONG
SuspendCount
)
IN
PULONG
SuspendCount
)
{
{
FIXME
(
"(0x%
08x
,%p),stub!
\n
"
,
FIXME
(
"(0x%
p
,%p),stub!
\n
"
,
ThreadHandle
,
SuspendCount
);
ThreadHandle
,
SuspendCount
);
return
0
;
return
0
;
}
}
...
@@ -219,7 +219,7 @@ NTSTATUS WINAPI NtQueryInformationThread(
...
@@ -219,7 +219,7 @@ NTSTATUS WINAPI NtQueryInformationThread(
IN
ULONG
ThreadInformationLength
,
IN
ULONG
ThreadInformationLength
,
OUT
PULONG
ReturnLength
)
OUT
PULONG
ReturnLength
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx,%p),stub!
\n
"
,
ThreadHandle
,
ThreadInformationClass
,
ThreadInformation
,
ThreadHandle
,
ThreadInformationClass
,
ThreadInformation
,
ThreadInformationLength
,
ReturnLength
);
ThreadInformationLength
,
ReturnLength
);
return
0
;
return
0
;
...
@@ -235,7 +235,7 @@ NTSTATUS WINAPI NtSetInformationThread(
...
@@ -235,7 +235,7 @@ NTSTATUS WINAPI NtSetInformationThread(
PVOID
ThreadInformation
,
PVOID
ThreadInformation
,
ULONG
ThreadInformationLength
)
ULONG
ThreadInformationLength
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx),stub!
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx),stub!
\n
"
,
ThreadHandle
,
ThreadInformationClass
,
ThreadInformation
,
ThreadInformationLength
);
ThreadHandle
,
ThreadInformationClass
,
ThreadInformation
,
ThreadInformationLength
);
return
0
;
return
0
;
}
}
...
@@ -256,7 +256,7 @@ NTSTATUS WINAPI NtDuplicateToken(
...
@@ -256,7 +256,7 @@ NTSTATUS WINAPI NtDuplicateToken(
IN
TOKEN_TYPE
TokenType
,
IN
TOKEN_TYPE
TokenType
,
OUT
PHANDLE
NewToken
)
OUT
PHANDLE
NewToken
)
{
{
FIXME
(
"(0x%
08x
,0x%08lx,%p,0x%08x,0x%08x,%p),stub!
\n
"
,
FIXME
(
"(0x%
p
,0x%08lx,%p,0x%08x,0x%08x,%p),stub!
\n
"
,
ExistingToken
,
DesiredAccess
,
ObjectAttributes
,
ExistingToken
,
DesiredAccess
,
ObjectAttributes
,
ImpersonationLevel
,
TokenType
,
NewToken
);
ImpersonationLevel
,
TokenType
,
NewToken
);
dump_ObjectAttributes
(
ObjectAttributes
);
dump_ObjectAttributes
(
ObjectAttributes
);
...
@@ -272,7 +272,7 @@ NTSTATUS WINAPI NtOpenProcessToken(
...
@@ -272,7 +272,7 @@ NTSTATUS WINAPI NtOpenProcessToken(
DWORD
DesiredAccess
,
DWORD
DesiredAccess
,
HANDLE
*
TokenHandle
)
HANDLE
*
TokenHandle
)
{
{
FIXME
(
"(0x%
08x
,0x%08lx,%p): stub
\n
"
,
FIXME
(
"(0x%
p
,0x%08lx,%p): stub
\n
"
,
ProcessHandle
,
DesiredAccess
,
TokenHandle
);
ProcessHandle
,
DesiredAccess
,
TokenHandle
);
*
TokenHandle
=
(
HANDLE
)
0xcafe
;
*
TokenHandle
=
(
HANDLE
)
0xcafe
;
return
0
;
return
0
;
...
@@ -288,7 +288,7 @@ NTSTATUS WINAPI NtOpenThreadToken(
...
@@ -288,7 +288,7 @@ NTSTATUS WINAPI NtOpenThreadToken(
BOOLEAN
OpenAsSelf
,
BOOLEAN
OpenAsSelf
,
HANDLE
*
TokenHandle
)
HANDLE
*
TokenHandle
)
{
{
FIXME
(
"(0x%
08x
,0x%08lx,0x%08x,%p): stub
\n
"
,
FIXME
(
"(0x%
p
,0x%08lx,0x%08x,%p): stub
\n
"
,
ThreadHandle
,
DesiredAccess
,
OpenAsSelf
,
TokenHandle
);
ThreadHandle
,
DesiredAccess
,
OpenAsSelf
,
TokenHandle
);
*
TokenHandle
=
(
HANDLE
)
0xcafe
;
*
TokenHandle
=
(
HANDLE
)
0xcafe
;
return
0
;
return
0
;
...
@@ -308,7 +308,7 @@ NTSTATUS WINAPI NtAdjustPrivilegesToken(
...
@@ -308,7 +308,7 @@ NTSTATUS WINAPI NtAdjustPrivilegesToken(
OUT
PTOKEN_PRIVILEGES
PreviousState
,
OUT
PTOKEN_PRIVILEGES
PreviousState
,
OUT
PDWORD
ReturnLength
)
OUT
PDWORD
ReturnLength
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx,%p,%p),stub!
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx,%p,%p),stub!
\n
"
,
TokenHandle
,
DisableAllPrivileges
,
NewState
,
BufferLength
,
PreviousState
,
ReturnLength
);
TokenHandle
,
DisableAllPrivileges
,
NewState
,
BufferLength
,
PreviousState
,
ReturnLength
);
return
0
;
return
0
;
}
}
...
@@ -332,7 +332,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
...
@@ -332,7 +332,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
{
{
unsigned
int
len
=
0
;
unsigned
int
len
=
0
;
FIXME
(
"(%
08x
,%ld,%p,%ld,%p): stub
\n
"
,
FIXME
(
"(%
p
,%ld,%p,%ld,%p): stub
\n
"
,
token
,
tokeninfoclass
,
tokeninfo
,
tokeninfolength
,
retlen
);
token
,
tokeninfoclass
,
tokeninfo
,
tokeninfolength
,
retlen
);
switch
(
tokeninfoclass
)
switch
(
tokeninfoclass
)
...
@@ -427,7 +427,7 @@ NTSTATUS WINAPI NtQuerySection(
...
@@ -427,7 +427,7 @@ NTSTATUS WINAPI NtQuerySection(
IN
ULONG
Length
,
IN
ULONG
Length
,
OUT
PULONG
ResultLength
)
OUT
PULONG
ResultLength
)
{
{
FIXME
(
"(0x%
08x
,%p,%p,0x%08lx,%p) stub!
\n
"
,
FIXME
(
"(0x%
p
,%p,%p,0x%08lx,%p) stub!
\n
"
,
SectionHandle
,
SectionInformationClass
,
SectionInformation
,
Length
,
ResultLength
);
SectionHandle
,
SectionInformationClass
,
SectionInformation
,
Length
,
ResultLength
);
return
0
;
return
0
;
}
}
...
...
dlls/ntdll/om.c
View file @
ed800c69
...
@@ -54,7 +54,7 @@ NTSTATUS WINAPI NtQueryObject(
...
@@ -54,7 +54,7 @@ NTSTATUS WINAPI NtQueryObject(
IN
ULONG
Length
,
IN
ULONG
Length
,
OUT
PULONG
ResultLength
)
OUT
PULONG
ResultLength
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx,%p): stub
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx,%p): stub
\n
"
,
ObjectHandle
,
ObjectInformationClass
,
ObjectInformation
,
Length
,
ResultLength
);
ObjectHandle
,
ObjectInformationClass
,
ObjectInformation
,
Length
,
ResultLength
);
return
0
;
return
0
;
}
}
...
@@ -85,7 +85,7 @@ NtQuerySecurityObject(
...
@@ -85,7 +85,7 @@ NtQuerySecurityObject(
PISECURITY_DESCRIPTOR_RELATIVE
psd
=
(
PISECURITY_DESCRIPTOR_RELATIVE
)
Buffer
;
PISECURITY_DESCRIPTOR_RELATIVE
psd
=
(
PISECURITY_DESCRIPTOR_RELATIVE
)
Buffer
;
UINT
BufferIndex
=
sizeof
(
SECURITY_DESCRIPTOR_RELATIVE
);
UINT
BufferIndex
=
sizeof
(
SECURITY_DESCRIPTOR_RELATIVE
);
FIXME
(
"(0x%
08x
,0x%08lx,%p,0x%08lx,%p) stub!
\n
"
,
FIXME
(
"(0x%
p
,0x%08lx,%p,0x%08lx,%p) stub!
\n
"
,
Object
,
RequestedInformation
,
pSecurityDesriptor
,
Length
,
ResultLength
);
Object
,
RequestedInformation
,
pSecurityDesriptor
,
Length
,
ResultLength
);
RequestedInformation
&=
0x0000000f
;
RequestedInformation
&=
0x0000000f
;
...
@@ -271,7 +271,7 @@ NTSTATUS WINAPI NtWaitForSingleObject(
...
@@ -271,7 +271,7 @@ NTSTATUS WINAPI NtWaitForSingleObject(
IN
BOOLEAN
Alertable
,
IN
BOOLEAN
Alertable
,
IN
PLARGE_INTEGER
Time
)
IN
PLARGE_INTEGER
Time
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p),stub!
\n
"
,
Object
,
Alertable
,
Time
);
FIXME
(
"(0x%
p
,0x%08x,%p),stub!
\n
"
,
Object
,
Alertable
,
Time
);
return
0
;
return
0
;
}
}
...
@@ -338,7 +338,7 @@ NTSTATUS WINAPI NtQueryDirectoryObject(
...
@@ -338,7 +338,7 @@ NTSTATUS WINAPI NtQueryDirectoryObject(
IN
OUT
PULONG
ObjectIndex
,
IN
OUT
PULONG
ObjectIndex
,
OUT
PULONG
DataWritten
OPTIONAL
)
OUT
PULONG
DataWritten
OPTIONAL
)
{
{
FIXME
(
"(0x%
08x
,%p,0x%08lx,0x%08x,0x%08x,%p,%p) stub
\n
"
,
FIXME
(
"(0x%
p
,%p,0x%08lx,0x%08x,0x%08x,%p,%p) stub
\n
"
,
DirObjHandle
,
DirObjInformation
,
BufferLength
,
GetNextIndex
,
DirObjHandle
,
DirObjInformation
,
BufferLength
,
GetNextIndex
,
IgnoreInputIndex
,
ObjectIndex
,
DataWritten
);
IgnoreInputIndex
,
ObjectIndex
,
DataWritten
);
return
0xc0000000
;
/* We don't have any. Whatever. (Yet.) */
return
0xc0000000
;
/* We don't have any. Whatever. (Yet.) */
...
@@ -385,7 +385,7 @@ NTSTATUS WINAPI NtQuerySymbolicLinkObject(
...
@@ -385,7 +385,7 @@ NTSTATUS WINAPI NtQuerySymbolicLinkObject(
IN
OUT
PUNICODE_STRING
LinkTarget
,
IN
OUT
PUNICODE_STRING
LinkTarget
,
OUT
PULONG
ReturnedLength
OPTIONAL
)
OUT
PULONG
ReturnedLength
OPTIONAL
)
{
{
FIXME
(
"(0x%
08x
,%p,%p) stub
\n
"
,
FIXME
(
"(0x%
p
,%p,%p) stub
\n
"
,
LinkHandle
,
debugstr_us
(
LinkTarget
),
ReturnedLength
);
LinkHandle
,
debugstr_us
(
LinkTarget
),
ReturnedLength
);
return
0
;
return
0
;
...
...
dlls/ntdll/reg.c
View file @
ed800c69
...
@@ -55,7 +55,7 @@ NTSTATUS WINAPI NtCreateKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTR
...
@@ -55,7 +55,7 @@ NTSTATUS WINAPI NtCreateKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTR
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
TRACE
(
"(0x%
x
,%s,%s,%lx,%lx,%p)
\n
"
,
attr
->
RootDirectory
,
debugstr_us
(
attr
->
ObjectName
),
TRACE
(
"(0x%
p
,%s,%s,%lx,%lx,%p)
\n
"
,
attr
->
RootDirectory
,
debugstr_us
(
attr
->
ObjectName
),
debugstr_us
(
class
),
options
,
access
,
retkey
);
debugstr_us
(
class
),
options
,
access
,
retkey
);
if
(
attr
->
ObjectName
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
if
(
attr
->
ObjectName
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
...
@@ -77,7 +77,7 @@ NTSTATUS WINAPI NtCreateKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTR
...
@@ -77,7 +77,7 @@ NTSTATUS WINAPI NtCreateKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTR
}
}
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
TRACE
(
"<- 0x%
04x
\n
"
,
*
retkey
);
TRACE
(
"<- 0x%
p
\n
"
,
*
retkey
);
return
ret
;
return
ret
;
}
}
...
@@ -95,7 +95,7 @@ NTSTATUS WINAPI NtOpenKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTRIB
...
@@ -95,7 +95,7 @@ NTSTATUS WINAPI NtOpenKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTRIB
NTSTATUS
ret
;
NTSTATUS
ret
;
DWORD
len
=
attr
->
ObjectName
->
Length
;
DWORD
len
=
attr
->
ObjectName
->
Length
;
TRACE
(
"(0x%
x
,%s,%lx,%p)
\n
"
,
attr
->
RootDirectory
,
TRACE
(
"(0x%
p
,%s,%lx,%p)
\n
"
,
attr
->
RootDirectory
,
debugstr_us
(
attr
->
ObjectName
),
access
,
retkey
);
debugstr_us
(
attr
->
ObjectName
),
access
,
retkey
);
if
(
len
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
if
(
len
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
...
@@ -110,7 +110,7 @@ NTSTATUS WINAPI NtOpenKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTRIB
...
@@ -110,7 +110,7 @@ NTSTATUS WINAPI NtOpenKey( PHKEY retkey, ACCESS_MASK access, const OBJECT_ATTRIB
*
retkey
=
reply
->
hkey
;
*
retkey
=
reply
->
hkey
;
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
TRACE
(
"<- 0x%
04x
\n
"
,
*
retkey
);
TRACE
(
"<- 0x%
p
\n
"
,
*
retkey
);
return
ret
;
return
ret
;
}
}
...
@@ -123,7 +123,7 @@ NTSTATUS WINAPI NtDeleteKey( HKEY hkey )
...
@@ -123,7 +123,7 @@ NTSTATUS WINAPI NtDeleteKey( HKEY hkey )
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
TRACE
(
"(%
x
)
\n
"
,
hkey
);
TRACE
(
"(%
p
)
\n
"
,
hkey
);
SERVER_START_REQ
(
delete_key
)
SERVER_START_REQ
(
delete_key
)
{
{
...
@@ -143,7 +143,7 @@ NTSTATUS WINAPI NtDeleteValueKey( HKEY hkey, const UNICODE_STRING *name )
...
@@ -143,7 +143,7 @@ NTSTATUS WINAPI NtDeleteValueKey( HKEY hkey, const UNICODE_STRING *name )
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
TRACE
(
"(0x%
x
,%s)
\n
"
,
hkey
,
debugstr_us
(
name
)
);
TRACE
(
"(0x%
p
,%s)
\n
"
,
hkey
,
debugstr_us
(
name
)
);
if
(
name
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
if
(
name
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
SERVER_START_REQ
(
delete_key_value
)
SERVER_START_REQ
(
delete_key_value
)
...
@@ -328,7 +328,7 @@ NTSTATUS WINAPI NtEnumerateValueKey( HKEY handle, ULONG index,
...
@@ -328,7 +328,7 @@ NTSTATUS WINAPI NtEnumerateValueKey( HKEY handle, ULONG index,
void
*
ptr
;
void
*
ptr
;
size_t
fixed_size
;
size_t
fixed_size
;
TRACE
(
"(0x%
x
,%lu,%d,%p,%ld)
\n
"
,
handle
,
index
,
info_class
,
info
,
length
);
TRACE
(
"(0x%
p
,%lu,%d,%p,%ld)
\n
"
,
handle
,
index
,
info_class
,
info
,
length
);
/* compute the length we want to retrieve */
/* compute the length we want to retrieve */
switch
(
info_class
)
switch
(
info_class
)
...
@@ -376,7 +376,7 @@ NTSTATUS WINAPI NtQueryValueKey( HKEY handle, const UNICODE_STRING *name,
...
@@ -376,7 +376,7 @@ NTSTATUS WINAPI NtQueryValueKey( HKEY handle, const UNICODE_STRING *name,
UCHAR
*
data_ptr
;
UCHAR
*
data_ptr
;
int
fixed_size
=
0
;
int
fixed_size
=
0
;
TRACE
(
"(0x%
x
,%s,%d,%p,%ld)
\n
"
,
handle
,
debugstr_us
(
name
),
info_class
,
info
,
length
);
TRACE
(
"(0x%
p
,%s,%d,%p,%ld)
\n
"
,
handle
,
debugstr_us
(
name
),
info_class
,
info
,
length
);
if
(
name
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
if
(
name
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
...
@@ -424,7 +424,7 @@ NTSTATUS WINAPI NtQueryValueKey( HKEY handle, const UNICODE_STRING *name,
...
@@ -424,7 +424,7 @@ NTSTATUS WINAPI NtQueryValueKey( HKEY handle, const UNICODE_STRING *name,
*/
*/
NTSTATUS
WINAPI
NtFlushKey
(
HKEY
KeyHandle
)
NTSTATUS
WINAPI
NtFlushKey
(
HKEY
KeyHandle
)
{
{
FIXME
(
"(0x%
08x
) stub!
\n
"
,
FIXME
(
"(0x%
p
) stub!
\n
"
,
KeyHandle
);
KeyHandle
);
return
1
;
return
1
;
}
}
...
@@ -457,7 +457,7 @@ NTSTATUS WINAPI NtNotifyChangeKey(
...
@@ -457,7 +457,7 @@ NTSTATUS WINAPI NtNotifyChangeKey(
IN
ULONG
Length
,
IN
ULONG
Length
,
IN
BOOLEAN
WatchSubtree
)
IN
BOOLEAN
WatchSubtree
)
{
{
FIXME
(
"(0x%
08x,0x%08x
,%p,%p,%p,0x%08lx, 0x%08x,%p,0x%08lx,0x%08x) stub!
\n
"
,
FIXME
(
"(0x%
p,0x%p
,%p,%p,%p,0x%08lx, 0x%08x,%p,0x%08lx,0x%08x) stub!
\n
"
,
KeyHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
CompletionFilter
,
KeyHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
CompletionFilter
,
Asynchroneous
,
ChangeBuffer
,
Length
,
WatchSubtree
);
Asynchroneous
,
ChangeBuffer
,
Length
,
WatchSubtree
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
...
@@ -476,7 +476,7 @@ NTSTATUS WINAPI NtQueryMultipleValueKey(
...
@@ -476,7 +476,7 @@ NTSTATUS WINAPI NtQueryMultipleValueKey(
ULONG
Length
,
ULONG
Length
,
PULONG
ReturnLength
)
PULONG
ReturnLength
)
{
{
FIXME
(
"(0x%
08x
,%p,0x%08lx,%p,0x%08lx,%p) stub!
\n
"
,
FIXME
(
"(0x%
p
,%p,0x%08lx,%p,0x%08lx,%p) stub!
\n
"
,
KeyHandle
,
ListOfValuesToQuery
,
NumberOfItems
,
MultipleValueInformation
,
KeyHandle
,
ListOfValuesToQuery
,
NumberOfItems
,
MultipleValueInformation
,
Length
,
ReturnLength
);
Length
,
ReturnLength
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
...
@@ -491,7 +491,7 @@ NTSTATUS WINAPI NtReplaceKey(
...
@@ -491,7 +491,7 @@ NTSTATUS WINAPI NtReplaceKey(
IN
HKEY
Key
,
IN
HKEY
Key
,
IN
POBJECT_ATTRIBUTES
ReplacedObjectAttributes
)
IN
POBJECT_ATTRIBUTES
ReplacedObjectAttributes
)
{
{
FIXME
(
"(0x%
08x
),stub!
\n
"
,
Key
);
FIXME
(
"(0x%
p
),stub!
\n
"
,
Key
);
dump_ObjectAttributes
(
ObjectAttributes
);
dump_ObjectAttributes
(
ObjectAttributes
);
dump_ObjectAttributes
(
ReplacedObjectAttributes
);
dump_ObjectAttributes
(
ReplacedObjectAttributes
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
...
@@ -505,7 +505,7 @@ NTSTATUS WINAPI NtRestoreKey(
...
@@ -505,7 +505,7 @@ NTSTATUS WINAPI NtRestoreKey(
HANDLE
FileHandle
,
HANDLE
FileHandle
,
ULONG
RestoreFlags
)
ULONG
RestoreFlags
)
{
{
FIXME
(
"(0x%
08x,0x%08x
,0x%08lx) stub
\n
"
,
FIXME
(
"(0x%
p,0x%p
,0x%08lx) stub
\n
"
,
KeyHandle
,
FileHandle
,
RestoreFlags
);
KeyHandle
,
FileHandle
,
RestoreFlags
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
@@ -517,7 +517,7 @@ NTSTATUS WINAPI NtSaveKey(
...
@@ -517,7 +517,7 @@ NTSTATUS WINAPI NtSaveKey(
IN
HKEY
KeyHandle
,
IN
HKEY
KeyHandle
,
IN
HANDLE
FileHandle
)
IN
HANDLE
FileHandle
)
{
{
FIXME
(
"(0x%
08x,0x%08x
) stub
\n
"
,
FIXME
(
"(0x%
p,0x%p
) stub
\n
"
,
KeyHandle
,
FileHandle
);
KeyHandle
,
FileHandle
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
@@ -531,7 +531,7 @@ NTSTATUS WINAPI NtSetInformationKey(
...
@@ -531,7 +531,7 @@ NTSTATUS WINAPI NtSetInformationKey(
IN
PVOID
KeyInformation
,
IN
PVOID
KeyInformation
,
IN
ULONG
KeyInformationLength
)
IN
ULONG
KeyInformationLength
)
{
{
FIXME
(
"(0x%
08x
,0x%08x,%p,0x%08lx) stub
\n
"
,
FIXME
(
"(0x%
p
,0x%08x,%p,0x%08lx) stub
\n
"
,
KeyHandle
,
KeyInformationClass
,
KeyInformation
,
KeyInformationLength
);
KeyHandle
,
KeyInformationClass
,
KeyInformation
,
KeyInformationLength
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
@@ -550,7 +550,7 @@ NTSTATUS WINAPI NtSetValueKey( HKEY hkey, const UNICODE_STRING *name, ULONG Titl
...
@@ -550,7 +550,7 @@ NTSTATUS WINAPI NtSetValueKey( HKEY hkey, const UNICODE_STRING *name, ULONG Titl
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
TRACE
(
"(0x%
x
,%s,%ld,%p,%ld)
\n
"
,
hkey
,
debugstr_us
(
name
),
type
,
data
,
count
);
TRACE
(
"(0x%
p
,%s,%ld,%p,%ld)
\n
"
,
hkey
,
debugstr_us
(
name
),
type
,
data
,
count
);
if
(
name
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
if
(
name
->
Length
>
MAX_NAME_LENGTH
)
return
STATUS_BUFFER_OVERFLOW
;
...
@@ -574,7 +574,7 @@ NTSTATUS WINAPI NtSetValueKey( HKEY hkey, const UNICODE_STRING *name, ULONG Titl
...
@@ -574,7 +574,7 @@ NTSTATUS WINAPI NtSetValueKey( HKEY hkey, const UNICODE_STRING *name, ULONG Titl
NTSTATUS
WINAPI
NtUnloadKey
(
NTSTATUS
WINAPI
NtUnloadKey
(
IN
HKEY
KeyHandle
)
IN
HKEY
KeyHandle
)
{
{
FIXME
(
"(0x%
08x
) stub
\n
"
,
FIXME
(
"(0x%
p
) stub
\n
"
,
KeyHandle
);
KeyHandle
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
...
dlls/ntdll/rtl.c
View file @
ed800c69
...
@@ -221,7 +221,7 @@ void WINAPI RtlDumpResource(LPRTL_RWLOCK rwl)
...
@@ -221,7 +221,7 @@ void WINAPI RtlDumpResource(LPRTL_RWLOCK rwl)
MESSAGE
(
"RtlDumpResource(%p):
\n\t
active count = %i
\n\t
waiting readers = %i
\n\t
waiting writers = %i
\n
"
,
MESSAGE
(
"RtlDumpResource(%p):
\n\t
active count = %i
\n\t
waiting readers = %i
\n\t
waiting writers = %i
\n
"
,
rwl
,
rwl
->
iNumberActive
,
rwl
->
uSharedWaiters
,
rwl
->
uExclusiveWaiters
);
rwl
,
rwl
->
iNumberActive
,
rwl
->
uSharedWaiters
,
rwl
->
uExclusiveWaiters
);
if
(
rwl
->
iNumberActive
)
if
(
rwl
->
iNumberActive
)
MESSAGE
(
"
\t
owner thread = %
08x
\n
"
,
rwl
->
hOwningThreadId
);
MESSAGE
(
"
\t
owner thread = %
p
\n
"
,
rwl
->
hOwningThreadId
);
}
}
}
}
...
...
dlls/ntdll/sec.c
View file @
ed800c69
...
@@ -693,7 +693,7 @@ NtAccessCheck(
...
@@ -693,7 +693,7 @@ NtAccessCheck(
OUT
PULONG
GrantedAccess
,
OUT
PULONG
GrantedAccess
,
OUT
PBOOLEAN
AccessStatus
)
OUT
PBOOLEAN
AccessStatus
)
{
{
FIXME
(
"(%p, %
04x
, %08lx, %p, %p, %p, %p, %p), stub
\n
"
,
FIXME
(
"(%p, %
p
, %08lx, %p, %p, %p, %p, %p), stub
\n
"
,
SecurityDescriptor
,
ClientToken
,
DesiredAccess
,
GenericMapping
,
SecurityDescriptor
,
ClientToken
,
DesiredAccess
,
GenericMapping
,
PrivilegeSet
,
ReturnLength
,
GrantedAccess
,
AccessStatus
);
PrivilegeSet
,
ReturnLength
,
GrantedAccess
,
AccessStatus
);
*
AccessStatus
=
TRUE
;
*
AccessStatus
=
TRUE
;
...
@@ -709,7 +709,7 @@ NtSetSecurityObject(
...
@@ -709,7 +709,7 @@ NtSetSecurityObject(
IN
SECURITY_INFORMATION
SecurityInformation
,
IN
SECURITY_INFORMATION
SecurityInformation
,
IN
PSECURITY_DESCRIPTOR
SecurityDescriptor
)
IN
PSECURITY_DESCRIPTOR
SecurityDescriptor
)
{
{
FIXME
(
"0x%
08x
0x%08lx %p
\n
"
,
Handle
,
SecurityInformation
,
SecurityDescriptor
);
FIXME
(
"0x%
p
0x%08lx %p
\n
"
,
Handle
,
SecurityInformation
,
SecurityDescriptor
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
...
dlls/ntdll/sync.c
View file @
ed800c69
...
@@ -97,7 +97,7 @@ NTSTATUS WINAPI NtQuerySemaphore(
...
@@ -97,7 +97,7 @@ NTSTATUS WINAPI NtQuerySemaphore(
ULONG
Length
,
ULONG
Length
,
PULONG
ReturnLength
)
PULONG
ReturnLength
)
{
{
FIXME
(
"(0x%
08x
,%p,%p,0x%08lx,%p) stub!
\n
"
,
FIXME
(
"(0x%
p
,%p,%p,0x%08lx,%p) stub!
\n
"
,
SemaphoreHandle
,
SemaphoreInformationClass
,
SemaphoreInformation
,
Length
,
ReturnLength
);
SemaphoreHandle
,
SemaphoreInformationClass
,
SemaphoreInformation
,
Length
,
ReturnLength
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
...
@@ -237,7 +237,7 @@ NTSTATUS WINAPI NtClearEvent ( HANDLE handle )
...
@@ -237,7 +237,7 @@ NTSTATUS WINAPI NtClearEvent ( HANDLE handle )
NTSTATUS
WINAPI
NtPulseEvent
(
HANDLE
handle
,
PULONG
PulseCount
)
NTSTATUS
WINAPI
NtPulseEvent
(
HANDLE
handle
,
PULONG
PulseCount
)
{
{
NTSTATUS
ret
;
NTSTATUS
ret
;
FIXME
(
"(0x%
08x
,%p)
\n
"
,
handle
,
PulseCount
);
FIXME
(
"(0x%
p
,%p)
\n
"
,
handle
,
PulseCount
);
SERVER_START_REQ
(
event_op
)
SERVER_START_REQ
(
event_op
)
{
{
req
->
handle
=
handle
;
req
->
handle
=
handle
;
...
@@ -258,6 +258,6 @@ NTSTATUS WINAPI NtQueryEvent (
...
@@ -258,6 +258,6 @@ NTSTATUS WINAPI NtQueryEvent (
IN
ULONG
EventInformationLength
,
IN
ULONG
EventInformationLength
,
OUT
PULONG
ReturnLength
)
OUT
PULONG
ReturnLength
)
{
{
FIXME
(
"(0x%
08x
)
\n
"
,
EventHandle
);
FIXME
(
"(0x%
p
)
\n
"
,
EventHandle
);
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
dlls/ntdll/virtual.c
View file @
ed800c69
...
@@ -154,7 +154,7 @@ static void VIRTUAL_DumpView( FILE_VIEW *view )
...
@@ -154,7 +154,7 @@ static void VIRTUAL_DumpView( FILE_VIEW *view )
else
if
(
view
->
flags
&
VFLAG_VALLOC
)
else
if
(
view
->
flags
&
VFLAG_VALLOC
)
DPRINTF
(
" (valloc)
\n
"
);
DPRINTF
(
" (valloc)
\n
"
);
else
if
(
view
->
mapping
)
else
if
(
view
->
mapping
)
DPRINTF
(
" %
d
\n
"
,
view
->
mapping
);
DPRINTF
(
" %
p
\n
"
,
view
->
mapping
);
else
else
DPRINTF
(
" (anonymous)
\n
"
);
DPRINTF
(
" (anonymous)
\n
"
);
...
@@ -1366,7 +1366,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
...
@@ -1366,7 +1366,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
return
STATUS_ACCESS_DENIED
;
return
STATUS_ACCESS_DENIED
;
}
}
TRACE
(
"handle=%
x
addr=%p off=%lx%08lx size=%x access=%lx
\n
"
,
TRACE
(
"handle=%
p
addr=%p off=%lx%08lx size=%x access=%lx
\n
"
,
handle
,
*
addr_ptr
,
offset
->
s
.
HighPart
,
offset
->
s
.
LowPart
,
size
,
protect
);
handle
,
*
addr_ptr
,
offset
->
s
.
HighPart
,
offset
->
s
.
LowPart
,
size
,
protect
);
/* Check parameters */
/* Check parameters */
...
@@ -1464,7 +1464,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
...
@@ -1464,7 +1464,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
/* Map the file */
/* Map the file */
TRACE
(
"handle=%
x
size=%x offset=%lx
\n
"
,
handle
,
size
,
offset
->
s
.
LowPart
);
TRACE
(
"handle=%
p
size=%x offset=%lx
\n
"
,
handle
,
size
,
offset
->
s
.
LowPart
);
ret
=
VIRTUAL_mmap
(
unix_handle
,
ptr
,
size
,
offset
->
s
.
LowPart
,
offset
->
s
.
HighPart
,
ret
=
VIRTUAL_mmap
(
unix_handle
,
ptr
,
size
,
offset
->
s
.
LowPart
,
offset
->
s
.
HighPart
,
VIRTUAL_GetUnixProt
(
prot
),
flags
|
MAP_FIXED
,
&
removable
);
VIRTUAL_GetUnixProt
(
prot
),
flags
|
MAP_FIXED
,
&
removable
);
...
...
files/dos_fs.c
View file @
ed800c69
...
@@ -884,7 +884,7 @@ static HANDLE DOSFS_CreateCommPort(LPCWSTR name, DWORD access, DWORD attributes,
...
@@ -884,7 +884,7 @@ static HANDLE DOSFS_CreateCommPort(LPCWSTR name, DWORD access, DWORD attributes,
if
(
!
ret
)
if
(
!
ret
)
ERR
(
"Couldn't open device '%s' ! (check permissions)
\n
"
,
devname
);
ERR
(
"Couldn't open device '%s' ! (check permissions)
\n
"
,
devname
);
else
else
TRACE
(
"return %
08X
\n
"
,
ret
);
TRACE
(
"return %
p
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
...
@@ -2149,7 +2149,7 @@ BOOL WINAPI FindClose( HANDLE handle )
...
@@ -2149,7 +2149,7 @@ BOOL WINAPI FindClose( HANDLE handle )
}
}
__EXCEPT
(
page_fault
)
__EXCEPT
(
page_fault
)
{
{
WARN
(
"Illegal handle %
x
\n
"
,
handle
);
WARN
(
"Illegal handle %
p
\n
"
,
handle
);
SetLastError
(
ERROR_INVALID_HANDLE
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
return
FALSE
;
}
}
...
...
files/file.c
View file @
ed800c69
...
@@ -514,7 +514,7 @@ static HANDLE FILE_OpenPipe(LPCWSTR name, DWORD access)
...
@@ -514,7 +514,7 @@ static HANDLE FILE_OpenPipe(LPCWSTR name, DWORD access)
ret
=
reply
->
handle
;
ret
=
reply
->
handle
;
}
}
SERVER_END_REQ
;
SERVER_END_REQ
;
TRACE
(
"Returned %
d
\n
"
,
ret
);
TRACE
(
"Returned %
p
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
...
@@ -664,7 +664,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
...
@@ -664,7 +664,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
GetDriveTypeW
(
full_name
.
short_name
)
);
GetDriveTypeW
(
full_name
.
short_name
)
);
done:
done:
if
(
!
ret
)
ret
=
INVALID_HANDLE_VALUE
;
if
(
!
ret
)
ret
=
INVALID_HANDLE_VALUE
;
TRACE
(
"returning %
08x
\n
"
,
ret
);
TRACE
(
"returning %
p
\n
"
,
ret
);
return
ret
;
return
ret
;
}
}
...
@@ -787,7 +787,7 @@ DWORD WINAPI GetFileInformationByHandle( HANDLE hFile,
...
@@ -787,7 +787,7 @@ DWORD WINAPI GetFileInformationByHandle( HANDLE hFile,
DWORD
ret
;
DWORD
ret
;
if
(
!
info
)
return
0
;
if
(
!
info
)
return
0
;
TRACE
(
"%
08x
\n
"
,
hFile
);
TRACE
(
"%
p
\n
"
,
hFile
);
SERVER_START_REQ
(
get_file_info
)
SERVER_START_REQ
(
get_file_info
)
{
{
...
@@ -1363,7 +1363,7 @@ found:
...
@@ -1363,7 +1363,7 @@ found:
ofs
->
Reserved2
=
filedatetime
[
1
];
ofs
->
Reserved2
=
filedatetime
[
1
];
success:
/* We get here if the open was successful */
success:
/* We get here if the open was successful */
TRACE
(
"(%s): OK, return = %
x
\n
"
,
name
,
handle
);
TRACE
(
"(%s): OK, return = %
p
\n
"
,
name
,
handle
);
if
(
win32
)
if
(
win32
)
{
{
hFileRet
=
(
HFILE
)
handle
;
hFileRet
=
(
HFILE
)
handle
;
...
@@ -1453,7 +1453,7 @@ HFILE WINAPI Win32HandleToDosFileHandle( HANDLE handle )
...
@@ -1453,7 +1453,7 @@ HFILE WINAPI Win32HandleToDosFileHandle( HANDLE handle )
if
(
!
dos_handles
[
i
])
if
(
!
dos_handles
[
i
])
{
{
dos_handles
[
i
]
=
handle
;
dos_handles
[
i
]
=
handle
;
TRACE
(
"Got %d for h32 %
d
\n
"
,
i
,
handle
);
TRACE
(
"Got %d for h32 %
p
\n
"
,
i
,
handle
);
return
(
HFILE
)
i
;
return
(
HFILE
)
i
;
}
}
CloseHandle
(
handle
);
CloseHandle
(
handle
);
...
@@ -1544,7 +1544,7 @@ HFILE16 WINAPI _lclose16( HFILE16 hFile )
...
@@ -1544,7 +1544,7 @@ HFILE16 WINAPI _lclose16( HFILE16 hFile )
SetLastError
(
ERROR_INVALID_HANDLE
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
HFILE_ERROR16
;
return
HFILE_ERROR16
;
}
}
TRACE
(
"%d (handle32=%
d
)
\n
"
,
hFile
,
dos_handles
[
hFile
]
);
TRACE
(
"%d (handle32=%
p
)
\n
"
,
hFile
,
dos_handles
[
hFile
]
);
CloseHandle
(
dos_handles
[
hFile
]
);
CloseHandle
(
dos_handles
[
hFile
]
);
dos_handles
[
hFile
]
=
0
;
dos_handles
[
hFile
]
=
0
;
return
0
;
return
0
;
...
@@ -1586,7 +1586,7 @@ BOOL WINAPI GetOverlappedResult(
...
@@ -1586,7 +1586,7 @@ BOOL WINAPI GetOverlappedResult(
)
{
)
{
DWORD
r
;
DWORD
r
;
TRACE
(
"(%
d
%p %p %x)
\n
"
,
hFile
,
lpOverlapped
,
lpTransferred
,
bWait
);
TRACE
(
"(%
p
%p %p %x)
\n
"
,
hFile
,
lpOverlapped
,
lpTransferred
,
bWait
);
if
(
lpOverlapped
==
NULL
)
if
(
lpOverlapped
==
NULL
)
{
{
...
@@ -1645,7 +1645,7 @@ BOOL WINAPI CancelIo(HANDLE handle)
...
@@ -1645,7 +1645,7 @@ BOOL WINAPI CancelIo(HANDLE handle)
{
{
async_private
*
ovp
,
*
t
;
async_private
*
ovp
,
*
t
;
TRACE
(
"handle = %
x
\n
"
,
handle
);
TRACE
(
"handle = %
p
\n
"
,
handle
);
for
(
ovp
=
NtCurrentTeb
()
->
pending_list
;
ovp
;
ovp
=
t
)
for
(
ovp
=
NtCurrentTeb
()
->
pending_list
;
ovp
;
ovp
=
t
)
{
{
...
@@ -1723,7 +1723,7 @@ static BOOL FILE_ReadFileEx(HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
...
@@ -1723,7 +1723,7 @@ static BOOL FILE_ReadFileEx(HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
int
flags
;
int
flags
;
enum
fd_type
type
;
enum
fd_type
type
;
TRACE
(
"file %
d
to buf %p num %ld %p func %p
\n
"
,
TRACE
(
"file %
p
to buf %p num %ld %p func %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
overlapped
,
lpCompletionRoutine
);
hFile
,
buffer
,
bytesToRead
,
overlapped
,
lpCompletionRoutine
);
/* check that there is an overlapped struct */
/* check that there is an overlapped struct */
...
@@ -1784,7 +1784,7 @@ static BOOL FILE_TimeoutRead(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPD
...
@@ -1784,7 +1784,7 @@ static BOOL FILE_TimeoutRead(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPD
OVERLAPPED
ov
;
OVERLAPPED
ov
;
BOOL
r
=
FALSE
;
BOOL
r
=
FALSE
;
TRACE
(
"%
d
%p %ld %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
bytesRead
);
TRACE
(
"%
p
%p %ld %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
bytesRead
);
ZeroMemory
(
&
ov
,
sizeof
(
OVERLAPPED
));
ZeroMemory
(
&
ov
,
sizeof
(
OVERLAPPED
));
if
(
STATUS_SUCCESS
==
NtCreateEvent
(
&
ov
.
hEvent
,
SYNCHRONIZE
,
NULL
,
0
,
0
))
if
(
STATUS_SUCCESS
==
NtCreateEvent
(
&
ov
.
hEvent
,
SYNCHRONIZE
,
NULL
,
0
,
0
))
...
@@ -1807,7 +1807,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
...
@@ -1807,7 +1807,7 @@ BOOL WINAPI ReadFile( HANDLE hFile, LPVOID buffer, DWORD bytesToRead,
int
unix_handle
,
result
,
flags
;
int
unix_handle
,
result
,
flags
;
enum
fd_type
type
;
enum
fd_type
type
;
TRACE
(
"%
d
%p %ld %p %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
TRACE
(
"%
p
%p %ld %p %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
bytesRead
,
overlapped
);
bytesRead
,
overlapped
);
if
(
bytesRead
)
*
bytesRead
=
0
;
/* Do this before anything else */
if
(
bytesRead
)
*
bytesRead
=
0
;
/* Do this before anything else */
...
@@ -1967,7 +1967,7 @@ static BOOL FILE_WriteFileEx(HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
...
@@ -1967,7 +1967,7 @@ static BOOL FILE_WriteFileEx(HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
int
flags
;
int
flags
;
enum
fd_type
type
;
enum
fd_type
type
;
TRACE
(
"file %
d to buf %p num %ld %p func %p handle %d
\n
"
,
TRACE
(
"file %
p to buf %p num %ld %p func %p handle %p
\n
"
,
hFile
,
buffer
,
bytesToWrite
,
overlapped
,
lpCompletionRoutine
,
hEvent
);
hFile
,
buffer
,
bytesToWrite
,
overlapped
,
lpCompletionRoutine
,
hEvent
);
if
(
overlapped
==
NULL
)
if
(
overlapped
==
NULL
)
...
@@ -2031,7 +2031,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
...
@@ -2031,7 +2031,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
int
unix_handle
,
result
,
flags
;
int
unix_handle
,
result
,
flags
;
enum
fd_type
type
;
enum
fd_type
type
;
TRACE
(
"%
d
%p %ld %p %p
\n
"
,
hFile
,
buffer
,
bytesToWrite
,
TRACE
(
"%
p
%p %ld %p %p
\n
"
,
hFile
,
buffer
,
bytesToWrite
,
bytesWritten
,
overlapped
);
bytesWritten
,
overlapped
);
if
(
bytesWritten
)
*
bytesWritten
=
0
;
/* Do this before anything else */
if
(
bytesWritten
)
*
bytesWritten
=
0
;
/* Do this before anything else */
...
@@ -2069,7 +2069,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
...
@@ -2069,7 +2069,7 @@ BOOL WINAPI WriteFile( HANDLE hFile, LPCVOID buffer, DWORD bytesToWrite,
switch
(
type
)
switch
(
type
)
{
{
case
FD_TYPE_CONSOLE
:
case
FD_TYPE_CONSOLE
:
TRACE
(
"%
d
%s %ld %p %p
\n
"
,
hFile
,
debugstr_an
(
buffer
,
bytesToWrite
),
bytesToWrite
,
TRACE
(
"%
p
%s %ld %p %p
\n
"
,
hFile
,
debugstr_an
(
buffer
,
bytesToWrite
),
bytesToWrite
,
bytesWritten
,
overlapped
);
bytesWritten
,
overlapped
);
return
FILE_WriteConsole
(
hFile
,
buffer
,
bytesToWrite
,
bytesWritten
,
NULL
);
return
FILE_WriteConsole
(
hFile
,
buffer
,
bytesToWrite
,
bytesWritten
,
NULL
);
...
@@ -2207,7 +2207,7 @@ DWORD WINAPI SetFilePointer( HANDLE hFile, LONG distance, LONG *highword,
...
@@ -2207,7 +2207,7 @@ DWORD WINAPI SetFilePointer( HANDLE hFile, LONG distance, LONG *highword,
{
{
DWORD
ret
=
INVALID_SET_FILE_POINTER
;
DWORD
ret
=
INVALID_SET_FILE_POINTER
;
TRACE
(
"handle %
d
offset %ld high %ld origin %ld
\n
"
,
TRACE
(
"handle %
p
offset %ld high %ld origin %ld
\n
"
,
hFile
,
distance
,
highword
?*
highword
:
0
,
method
);
hFile
,
distance
,
highword
?*
highword
:
0
,
method
);
SERVER_START_REQ
(
set_file_pointer
)
SERVER_START_REQ
(
set_file_pointer
)
...
@@ -3108,7 +3108,7 @@ BOOL WINAPI LockFileEx( HANDLE hFile, DWORD flags, DWORD reserved,
...
@@ -3108,7 +3108,7 @@ BOOL WINAPI LockFileEx( HANDLE hFile, DWORD flags, DWORD reserved,
DWORD
nNumberOfBytesToLockLow
,
DWORD
nNumberOfBytesToLockHigh
,
DWORD
nNumberOfBytesToLockLow
,
DWORD
nNumberOfBytesToLockHigh
,
LPOVERLAPPED
pOverlapped
)
LPOVERLAPPED
pOverlapped
)
{
{
FIXME
(
"hFile=%
d
,flags=%ld,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.
\n
"
,
FIXME
(
"hFile=%
p
,flags=%ld,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.
\n
"
,
hFile
,
flags
,
reserved
,
nNumberOfBytesToLockLow
,
nNumberOfBytesToLockHigh
,
hFile
,
flags
,
reserved
,
nNumberOfBytesToLockLow
,
nNumberOfBytesToLockHigh
,
pOverlapped
);
pOverlapped
);
if
(
reserved
==
0
)
if
(
reserved
==
0
)
...
@@ -3158,7 +3158,7 @@ BOOL WINAPI UnlockFileEx(
...
@@ -3158,7 +3158,7 @@ BOOL WINAPI UnlockFileEx(
LPOVERLAPPED
lpOverlapped
LPOVERLAPPED
lpOverlapped
)
)
{
{
FIXME
(
"hFile=%
d
,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.
\n
"
,
FIXME
(
"hFile=%
p
,reserved=%ld,lowbytes=%ld,highbytes=%ld,overlapped=%p: stub.
\n
"
,
hFile
,
dwReserved
,
nNumberOfBytesToUnlockLow
,
nNumberOfBytesToUnlockHigh
,
hFile
,
dwReserved
,
nNumberOfBytesToUnlockLow
,
nNumberOfBytesToUnlockHigh
,
lpOverlapped
);
lpOverlapped
);
if
(
dwReserved
==
0
)
if
(
dwReserved
==
0
)
...
...
files/smb.c
View file @
ed800c69
...
@@ -1385,7 +1385,7 @@ static HANDLE SMB_RegisterFile( int fd, USHORT tree_id, USHORT user_id, USHORT d
...
@@ -1385,7 +1385,7 @@ static HANDLE SMB_RegisterFile( int fd, USHORT tree_id, USHORT user_id, USHORT d
SERVER_END_REQ
;
SERVER_END_REQ
;
if
(
!
r
)
if
(
!
r
)
TRACE
(
"created wineserver smb object, handle = %
04x
\n
"
,
ret
);
TRACE
(
"created wineserver smb object, handle = %
p
\n
"
,
ret
);
else
else
SetLastError
(
ERROR_PATH_NOT_FOUND
);
SetLastError
(
ERROR_PATH_NOT_FOUND
);
...
@@ -1507,7 +1507,7 @@ BOOL WINAPI SMB_ReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPDWORD
...
@@ -1507,7 +1507,7 @@ BOOL WINAPI SMB_ReadFile(HANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPDWORD
USHORT
user_id
,
tree_id
,
dialect
,
file_id
,
read
;
USHORT
user_id
,
tree_id
,
dialect
,
file_id
,
read
;
BOOL
r
=
TRUE
;
BOOL
r
=
TRUE
;
TRACE
(
"%
04x
%p %ld %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
bytesRead
);
TRACE
(
"%
p
%p %ld %p
\n
"
,
hFile
,
buffer
,
bytesToRead
,
bytesRead
);
if
(
!
SMB_GetSmbInfo
(
hFile
,
&
tree_id
,
&
user_id
,
&
dialect
,
&
file_id
,
&
offset
))
if
(
!
SMB_GetSmbInfo
(
hFile
,
&
tree_id
,
&
user_id
,
&
dialect
,
&
file_id
,
&
offset
))
return
FALSE
;
return
FALSE
;
...
...
files/tape.c
View file @
ed800c69
...
@@ -36,7 +36,7 @@ BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRea
...
@@ -36,7 +36,7 @@ BOOL WINAPI BackupRead( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToRea
LPDWORD
lpNumberOfBytesRead
,
BOOL
bAbort
,
LPDWORD
lpNumberOfBytesRead
,
BOOL
bAbort
,
BOOL
bProcessSecurity
,
LPVOID
*
lpContext
)
BOOL
bProcessSecurity
,
LPVOID
*
lpContext
)
{
{
FIXME
(
"(%
04x
, %p, %ld, %p, %d, %d, %p) stub!
\n
"
,
hFile
,
lpBuffer
,
FIXME
(
"(%
p
, %p, %ld, %p, %d, %d, %p) stub!
\n
"
,
hFile
,
lpBuffer
,
nNumberOfBytesToRead
,
lpNumberOfBytesRead
,
bAbort
,
bProcessSecurity
,
nNumberOfBytesToRead
,
lpNumberOfBytesRead
,
bAbort
,
bProcessSecurity
,
lpContext
);
lpContext
);
...
@@ -53,7 +53,7 @@ BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesT
...
@@ -53,7 +53,7 @@ BOOL WINAPI BackupSeek( HANDLE hFile, DWORD dwLowBytesToSeek, DWORD dwHighBytesT
LPDWORD
lpdwLowByteSeeked
,
LPDWORD
lpdwHighByteSeeked
,
LPDWORD
lpdwLowByteSeeked
,
LPDWORD
lpdwHighByteSeeked
,
LPVOID
*
lpContext
)
LPVOID
*
lpContext
)
{
{
FIXME
(
"(%
04x
, %ld, %ld, %p, %p, %p) stub!
\n
"
,
hFile
,
dwLowBytesToSeek
,
FIXME
(
"(%
p
, %ld, %ld, %p, %p, %p) stub!
\n
"
,
hFile
,
dwLowBytesToSeek
,
dwHighBytesToSeek
,
lpdwLowByteSeeked
,
lpdwHighByteSeeked
,
lpContext
);
dwHighBytesToSeek
,
lpdwLowByteSeeked
,
lpdwHighByteSeeked
,
lpContext
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -69,7 +69,7 @@ BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWr
...
@@ -69,7 +69,7 @@ BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWr
LPDWORD
lpNumberOfBytesWritten
,
BOOL
bAbort
,
LPDWORD
lpNumberOfBytesWritten
,
BOOL
bAbort
,
BOOL
bProcessSecurity
,
LPVOID
*
lpContext
)
BOOL
bProcessSecurity
,
LPVOID
*
lpContext
)
{
{
FIXME
(
"(%
04x
, %p, %ld, %p, %d, %d, %p) stub!
\n
"
,
hFile
,
lpBuffer
,
FIXME
(
"(%
p
, %p, %ld, %p, %d, %d, %p) stub!
\n
"
,
hFile
,
lpBuffer
,
nNumberOfBytesToWrite
,
lpNumberOfBytesWritten
,
bAbort
,
nNumberOfBytesToWrite
,
lpNumberOfBytesWritten
,
bAbort
,
bProcessSecurity
,
lpContext
);
bProcessSecurity
,
lpContext
);
...
@@ -85,7 +85,7 @@ BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWr
...
@@ -85,7 +85,7 @@ BOOL WINAPI BackupWrite( HANDLE hFile, LPBYTE lpBuffer, DWORD nNumberOfBytesToWr
DWORD
WINAPI
CreateTapePartition
(
HANDLE
hDevice
,
DWORD
dwPartitionMethod
,
DWORD
WINAPI
CreateTapePartition
(
HANDLE
hDevice
,
DWORD
dwPartitionMethod
,
DWORD
dwCount
,
DWORD
dwSize
)
DWORD
dwCount
,
DWORD
dwSize
)
{
{
FIXME
(
"(%
04x
, %ld, %ld, %ld) stub!
\n
"
,
hDevice
,
dwPartitionMethod
,
dwCount
,
FIXME
(
"(%
p
, %ld, %ld, %ld) stub!
\n
"
,
hDevice
,
dwPartitionMethod
,
dwCount
,
dwSize
);
dwSize
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -99,7 +99,7 @@ DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
...
@@ -99,7 +99,7 @@ DWORD WINAPI CreateTapePartition( HANDLE hDevice, DWORD dwPartitionMethod,
*/
*/
DWORD
WINAPI
EraseTape
(
HANDLE
hDevice
,
DWORD
dwEraseType
,
BOOL
bImmediate
)
DWORD
WINAPI
EraseTape
(
HANDLE
hDevice
,
DWORD
dwEraseType
,
BOOL
bImmediate
)
{
{
FIXME
(
"(%
04x
, %ld, %d) stub!
\n
"
,
hDevice
,
dwEraseType
,
bImmediate
);
FIXME
(
"(%
p
, %ld, %d) stub!
\n
"
,
hDevice
,
dwEraseType
,
bImmediate
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -113,7 +113,7 @@ DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
...
@@ -113,7 +113,7 @@ DWORD WINAPI EraseTape( HANDLE hDevice, DWORD dwEraseType, BOOL bImmediate )
DWORD
WINAPI
GetTapeParameters
(
HANDLE
hDevice
,
DWORD
dwOperation
,
DWORD
WINAPI
GetTapeParameters
(
HANDLE
hDevice
,
DWORD
dwOperation
,
LPDWORD
lpdwSize
,
LPVOID
lpTapeInformation
)
LPDWORD
lpdwSize
,
LPVOID
lpTapeInformation
)
{
{
FIXME
(
"(%
04x
, %ld, %p, %p) stub!
\n
"
,
hDevice
,
dwOperation
,
lpdwSize
,
FIXME
(
"(%
p
, %ld, %p, %p) stub!
\n
"
,
hDevice
,
dwOperation
,
lpdwSize
,
lpTapeInformation
);
lpTapeInformation
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -129,7 +129,7 @@ DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
...
@@ -129,7 +129,7 @@ DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
LPDWORD
lpdwPartition
,
LPDWORD
lpdwOffsetLow
,
LPDWORD
lpdwPartition
,
LPDWORD
lpdwOffsetLow
,
LPDWORD
lpdwOffsetHigh
)
LPDWORD
lpdwOffsetHigh
)
{
{
FIXME
(
"(%
04x
, %ld, %p, %p, %p) stub!
\n
"
,
hDevice
,
dwPositionType
,
FIXME
(
"(%
p
, %ld, %p, %p, %p) stub!
\n
"
,
hDevice
,
dwPositionType
,
lpdwPartition
,
lpdwOffsetLow
,
lpdwOffsetHigh
);
lpdwPartition
,
lpdwOffsetLow
,
lpdwOffsetHigh
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -143,7 +143,7 @@ DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
...
@@ -143,7 +143,7 @@ DWORD WINAPI GetTapePosition( HANDLE hDevice, DWORD dwPositionType,
*/
*/
DWORD
WINAPI
GetTapeStatus
(
HANDLE
hDevice
)
DWORD
WINAPI
GetTapeStatus
(
HANDLE
hDevice
)
{
{
FIXME
(
"(%
04x
) stub!
\n
"
,
hDevice
);
FIXME
(
"(%
p
) stub!
\n
"
,
hDevice
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -156,7 +156,7 @@ DWORD WINAPI GetTapeStatus( HANDLE hDevice )
...
@@ -156,7 +156,7 @@ DWORD WINAPI GetTapeStatus( HANDLE hDevice )
*/
*/
DWORD
WINAPI
PrepareTape
(
HANDLE
hDevice
,
DWORD
dwOperation
,
BOOL
bImmediate
)
DWORD
WINAPI
PrepareTape
(
HANDLE
hDevice
,
DWORD
dwOperation
,
BOOL
bImmediate
)
{
{
FIXME
(
"(%
04x
, %ld, %d) stub!
\n
"
,
hDevice
,
dwOperation
,
bImmediate
);
FIXME
(
"(%
p
, %ld, %d) stub!
\n
"
,
hDevice
,
dwOperation
,
bImmediate
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -170,7 +170,7 @@ DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate )
...
@@ -170,7 +170,7 @@ DWORD WINAPI PrepareTape( HANDLE hDevice, DWORD dwOperation, BOOL bImmediate )
DWORD
WINAPI
SetTapeParameters
(
HANDLE
hDevice
,
DWORD
dwOperation
,
DWORD
WINAPI
SetTapeParameters
(
HANDLE
hDevice
,
DWORD
dwOperation
,
LPVOID
lpTapeInformation
)
LPVOID
lpTapeInformation
)
{
{
FIXME
(
"(%
04x
, %ld, %p) stub!
\n
"
,
hDevice
,
dwOperation
,
lpTapeInformation
);
FIXME
(
"(%
p
, %ld, %p) stub!
\n
"
,
hDevice
,
dwOperation
,
lpTapeInformation
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -185,7 +185,7 @@ DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
...
@@ -185,7 +185,7 @@ DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
dwPartition
,
DWORD
dwOffsetLow
,
DWORD
dwOffsetHigh
,
dwPartition
,
DWORD
dwOffsetLow
,
DWORD
dwOffsetHigh
,
BOOL
bImmediate
)
BOOL
bImmediate
)
{
{
FIXME
(
"(%
04x
, %ld, %ld, %ld, %ld, %d) stub!
\n
"
,
hDevice
,
dwPositionMethod
,
FIXME
(
"(%
p
, %ld, %ld, %ld, %ld, %d) stub!
\n
"
,
hDevice
,
dwPositionMethod
,
dwPartition
,
dwOffsetLow
,
dwOffsetHigh
,
bImmediate
);
dwPartition
,
dwOffsetLow
,
dwOffsetHigh
,
bImmediate
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
@@ -200,7 +200,7 @@ DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
...
@@ -200,7 +200,7 @@ DWORD WINAPI SetTapePosition( HANDLE hDevice, DWORD dwPositionMethod, DWORD
DWORD
WINAPI
WriteTapemark
(
HANDLE
hDevice
,
DWORD
dwTapemarkType
,
DWORD
DWORD
WINAPI
WriteTapemark
(
HANDLE
hDevice
,
DWORD
dwTapemarkType
,
DWORD
dwTapemarkCount
,
BOOL
bImmediate
)
dwTapemarkCount
,
BOOL
bImmediate
)
{
{
FIXME
(
"(%
04x
, %ld, %ld, %d) stub!
\n
"
,
hDevice
,
dwTapemarkType
,
FIXME
(
"(%
p
, %ld, %ld, %d) stub!
\n
"
,
hDevice
,
dwTapemarkType
,
dwTapemarkCount
,
bImmediate
);
dwTapemarkCount
,
bImmediate
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
SetLastError
(
ERROR_NOT_SUPPORTED
);
...
...
loader/module.c
View file @
ed800c69
...
@@ -85,7 +85,7 @@ static WINE_MODREF *MODULE32_LookupHMODULE( HMODULE hmod )
...
@@ -85,7 +85,7 @@ static WINE_MODREF *MODULE32_LookupHMODULE( HMODULE hmod )
return
exe_modref
;
return
exe_modref
;
if
(
!
HIWORD
(
hmod
))
{
if
(
!
HIWORD
(
hmod
))
{
ERR
(
"tried to lookup 0x%
04x
in win32 module handler!
\n
"
,
hmod
);
ERR
(
"tried to lookup 0x%
p
in win32 module handler!
\n
"
,
hmod
);
SetLastError
(
ERROR_INVALID_HANDLE
);
SetLastError
(
ERROR_INVALID_HANDLE
);
return
NULL
;
return
NULL
;
}
}
...
@@ -987,7 +987,7 @@ HINSTANCE WINAPI LoadModule( LPCSTR name, LPVOID paramBlock )
...
@@ -987,7 +987,7 @@ HINSTANCE WINAPI LoadModule( LPCSTR name, LPVOID paramBlock )
}
}
else
if
((
hInstance
=
(
HINSTANCE
)
GetLastError
())
>=
(
HINSTANCE
)
32
)
else
if
((
hInstance
=
(
HINSTANCE
)
GetLastError
())
>=
(
HINSTANCE
)
32
)
{
{
FIXME
(
"Strange error set by CreateProcess: %
d
\n
"
,
hInstance
);
FIXME
(
"Strange error set by CreateProcess: %
p
\n
"
,
hInstance
);
hInstance
=
(
HINSTANCE
)
11
;
hInstance
=
(
HINSTANCE
)
11
;
}
}
...
@@ -1262,7 +1262,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HANDLE hfile, DWORD flags )
...
@@ -1262,7 +1262,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HANDLE hfile, DWORD flags )
pwm
->
flags
&=
~
WINE_MODREF_DONT_RESOLVE_REFS
;
pwm
->
flags
&=
~
WINE_MODREF_DONT_RESOLVE_REFS
;
PE_fixup_imports
(
pwm
);
PE_fixup_imports
(
pwm
);
}
}
TRACE
(
"Already loaded module '%s' at 0x%
08x
, count=%d
\n
"
,
filename
,
pwm
->
module
,
pwm
->
refCount
);
TRACE
(
"Already loaded module '%s' at 0x%
p
, count=%d
\n
"
,
filename
,
pwm
->
module
,
pwm
->
refCount
);
if
(
allocated_libdir
)
if
(
allocated_libdir
)
{
{
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
libdir
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
libdir
);
...
@@ -1308,7 +1308,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HANDLE hfile, DWORD flags )
...
@@ -1308,7 +1308,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HANDLE hfile, DWORD flags )
if
(
pwm
)
if
(
pwm
)
{
{
/* Initialize DLL just loaded */
/* Initialize DLL just loaded */
TRACE
(
"Loaded module '%s' at 0x%
08x
\n
"
,
filename
,
pwm
->
module
);
TRACE
(
"Loaded module '%s' at 0x%
p
\n
"
,
filename
,
pwm
->
module
);
if
(
!
TRACE_ON
(
module
))
if
(
!
TRACE_ON
(
module
))
TRACE_
(
loaddll
)(
"Loaded module '%s' : %s
\n
"
,
filename
,
filetype
);
TRACE_
(
loaddll
)(
"Loaded module '%s' : %s
\n
"
,
filename
,
filetype
);
/* Set the refCount here so that an attach failure will */
/* Set the refCount here so that an attach failure will */
...
@@ -1574,7 +1574,7 @@ FARPROC16 WINAPI WIN32_GetProcAddress16( HMODULE hModule, LPCSTR name )
...
@@ -1574,7 +1574,7 @@ FARPROC16 WINAPI WIN32_GetProcAddress16( HMODULE hModule, LPCSTR name )
}
}
if
(
HIWORD
(
hModule
))
if
(
HIWORD
(
hModule
))
{
{
WARN
(
"hModule is Win32 handle (%
08x
)
\n
"
,
hModule
);
WARN
(
"hModule is Win32 handle (%
p
)
\n
"
,
hModule
);
return
(
FARPROC16
)
0
;
return
(
FARPROC16
)
0
;
}
}
return
GetProcAddress16
(
LOWORD
(
hModule
),
name
);
return
GetProcAddress16
(
LOWORD
(
hModule
),
name
);
...
...
loader/ne/module.c
View file @
ed800c69
...
@@ -126,7 +126,7 @@ void NE_DumpModule( HMODULE16 hModule )
...
@@ -126,7 +126,7 @@ void NE_DumpModule( HMODULE16 hModule )
pModule
->
os_flags
,
pModule
->
min_swap_area
,
pModule
->
os_flags
,
pModule
->
min_swap_area
,
pModule
->
expected_version
);
pModule
->
expected_version
);
if
(
pModule
->
flags
&
NE_FFLAGS_WIN32
)
if
(
pModule
->
flags
&
NE_FFLAGS_WIN32
)
DPRINTF
(
"PE module=%
08x
\n
"
,
pModule
->
module32
);
DPRINTF
(
"PE module=%
p
\n
"
,
pModule
->
module32
);
/* Dump the file info */
/* Dump the file info */
DPRINTF
(
"---
\n
"
);
DPRINTF
(
"---
\n
"
);
...
@@ -432,7 +432,7 @@ HANDLE NE_OpenFile( NE_MODULE *pModule )
...
@@ -432,7 +432,7 @@ HANDLE NE_OpenFile( NE_MODULE *pModule )
if
((
handle
=
CreateFileA
(
name
,
GENERIC_READ
,
FILE_SHARE_READ
,
if
((
handle
=
CreateFileA
(
name
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
0
))
==
INVALID_HANDLE_VALUE
)
NULL
,
OPEN_EXISTING
,
0
,
0
))
==
INVALID_HANDLE_VALUE
)
MESSAGE
(
"Can't open file '%s' for module %04x
\n
"
,
name
,
pModule
->
self
);
MESSAGE
(
"Can't open file '%s' for module %04x
\n
"
,
name
,
pModule
->
self
);
TRACE
(
"opened '%s' -> %
d
\n
"
,
name
,
handle
);
TRACE
(
"opened '%s' -> %
p
\n
"
,
name
,
handle
);
return
handle
;
return
handle
;
}
}
...
...
loader/ne/resource.c
View file @
ed800c69
...
@@ -453,7 +453,7 @@ DWORD NE_SizeofResource( NE_MODULE *pModule, HRSRC hRsrc )
...
@@ -453,7 +453,7 @@ DWORD NE_SizeofResource( NE_MODULE *pModule, HRSRC hRsrc )
if
(
!
pModule
||
!
pModule
->
res_table
)
return
0
;
if
(
!
pModule
||
!
pModule
->
res_table
)
return
0
;
TRACE
(
"module=%04x res=%
04x
\n
"
,
pModule
->
self
,
hRsrc
);
TRACE
(
"module=%04x res=%
p
\n
"
,
pModule
->
self
,
hRsrc
);
sizeShift
=
*
(
WORD
*
)((
char
*
)
pModule
+
pModule
->
res_table
);
sizeShift
=
*
(
WORD
*
)((
char
*
)
pModule
+
pModule
->
res_table
);
pNameInfo
=
(
NE_NAMEINFO
*
)((
char
*
)
pModule
+
LOWORD
(
hRsrc
));
pNameInfo
=
(
NE_NAMEINFO
*
)((
char
*
)
pModule
+
LOWORD
(
hRsrc
));
...
...
loader/ne/segment.c
View file @
ed800c69
...
@@ -165,7 +165,7 @@ BOOL NE_LoadSegment( NE_MODULE *pModule, WORD segnum )
...
@@ -165,7 +165,7 @@ BOOL NE_LoadSegment( NE_MODULE *pModule, WORD segnum )
NtCurrentTeb
()
->
cur_stack
=
MAKESEGPTR
(
pModule
->
self_loading_sel
,
NtCurrentTeb
()
->
cur_stack
=
MAKESEGPTR
(
pModule
->
self_loading_sel
,
0xff00
-
sizeof
(
STACK16FRAME
));
0xff00
-
sizeof
(
STACK16FRAME
));
TRACE_
(
dll
)(
"CallLoadAppSegProc(hmodule=0x%04x,hf=
0x%04x
,segnum=%d
\n
"
,
TRACE_
(
dll
)(
"CallLoadAppSegProc(hmodule=0x%04x,hf=
%p
,segnum=%d
\n
"
,
pModule
->
self
,
hf
,
segnum
);
pModule
->
self
,
hf
,
segnum
);
DuplicateHandle
(
GetCurrentProcess
(),
hf
,
GetCurrentProcess
(),
&
hFile32
,
DuplicateHandle
(
GetCurrentProcess
(),
hf
,
GetCurrentProcess
(),
&
hFile32
,
0
,
FALSE
,
DUPLICATE_SAME_ACCESS
);
0
,
FALSE
,
DUPLICATE_SAME_ACCESS
);
...
...
loader/pe_image.c
View file @
ed800c69
...
@@ -623,11 +623,11 @@ BOOL PE_InitDLL( HMODULE module, DWORD type, LPVOID lpReserved )
...
@@ -623,11 +623,11 @@ BOOL PE_InitDLL( HMODULE module, DWORD type, LPVOID lpReserved )
{
{
DLLENTRYPROC
entry
=
(
void
*
)((
char
*
)
module
+
nt
->
OptionalHeader
.
AddressOfEntryPoint
);
DLLENTRYPROC
entry
=
(
void
*
)((
char
*
)
module
+
nt
->
OptionalHeader
.
AddressOfEntryPoint
);
if
(
TRACE_ON
(
relay
))
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%08lx:Call PE DLL (proc=%p,module=%
08x
,type=%ld,res=%p)
\n
"
,
DPRINTF
(
"%08lx:Call PE DLL (proc=%p,module=%
p
,type=%ld,res=%p)
\n
"
,
GetCurrentThreadId
(),
entry
,
module
,
type
,
lpReserved
);
GetCurrentThreadId
(),
entry
,
module
,
type
,
lpReserved
);
retv
=
entry
(
module
,
type
,
lpReserved
);
retv
=
entry
(
module
,
type
,
lpReserved
);
if
(
TRACE_ON
(
relay
))
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%08lx:Ret PE DLL (proc=%p,module=%
08x
,type=%ld,res=%p) retval=%x
\n
"
,
DPRINTF
(
"%08lx:Ret PE DLL (proc=%p,module=%
p
,type=%ld,res=%p) retval=%x
\n
"
,
GetCurrentThreadId
(),
entry
,
module
,
type
,
lpReserved
,
retv
);
GetCurrentThreadId
(),
entry
,
module
,
type
,
lpReserved
,
retv
);
}
}
...
...
loader/resource.c
View file @
ed800c69
...
@@ -50,6 +50,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(resource);
...
@@ -50,6 +50,9 @@ WINE_DEFAULT_DEBUG_CHANNEL(resource);
/* handle conversions */
/* handle conversions */
#define HRSRC_32(h16) ((HRSRC)(ULONG_PTR)(h16))
#define HRSRC_32(h16) ((HRSRC)(ULONG_PTR)(h16))
#define HGLOBAL_32(h16) ((HGLOBAL)(ULONG_PTR)(h16))
#define HGLOBAL_16(h32) (LOWORD(h32))
#define HMODULE_32(h16) ((HMODULE)(ULONG_PTR)(h16))
typedef
struct
_HRSRC_ELEM
typedef
struct
_HRSRC_ELEM
{
{
...
@@ -150,7 +153,7 @@ static HRSRC RES_FindResource2( HMODULE hModule, LPCSTR type,
...
@@ -150,7 +153,7 @@ static HRSRC RES_FindResource2( HMODULE hModule, LPCSTR type,
{
{
HRSRC
hRsrc
=
0
;
HRSRC
hRsrc
=
0
;
TRACE
(
"(%
08x
, %08x%s, %08x%s, %04x, %s, %s)
\n
"
,
TRACE
(
"(%
p
, %08x%s, %08x%s, %04x, %s, %s)
\n
"
,
hModule
,
hModule
,
(
UINT
)
type
,
HIWORD
(
type
)
?
(
bUnicode
?
debugstr_w
((
LPWSTR
)
type
)
:
debugstr_a
(
type
))
:
""
,
(
UINT
)
type
,
HIWORD
(
type
)
?
(
bUnicode
?
debugstr_w
((
LPWSTR
)
type
)
:
debugstr_a
(
type
))
:
""
,
(
UINT
)
name
,
HIWORD
(
name
)
?
(
bUnicode
?
debugstr_w
((
LPWSTR
)
name
)
:
debugstr_a
(
name
))
:
""
,
(
UINT
)
name
,
HIWORD
(
name
)
?
(
bUnicode
?
debugstr_w
((
LPWSTR
)
name
)
:
debugstr_a
(
name
))
:
""
,
...
@@ -258,7 +261,7 @@ static DWORD RES_SizeofResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
...
@@ -258,7 +261,7 @@ static DWORD RES_SizeofResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
{
{
if
(
!
hRsrc
)
return
0
;
if
(
!
hRsrc
)
return
0
;
TRACE
(
"(%
08x, %08x
, %s)
\n
"
,
hModule
,
hRsrc
,
bRet16
?
"NE"
:
"PE"
);
TRACE
(
"(%
p, %p
, %s)
\n
"
,
hModule
,
hRsrc
,
bRet16
?
"NE"
:
"PE"
);
if
(
!
HIWORD
(
hModule
))
if
(
!
HIWORD
(
hModule
))
{
{
...
@@ -287,7 +290,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
...
@@ -287,7 +290,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
{
{
HGLOBAL
hMem
=
0
;
HGLOBAL
hMem
=
0
;
TRACE
(
"(%
08x, %08x
, %s)
\n
"
,
hModule
,
hRsrc
,
bRet16
?
"NE"
:
"PE"
);
TRACE
(
"(%
p, %p
, %s)
\n
"
,
hModule
,
hRsrc
,
bRet16
?
"NE"
:
"PE"
);
if
(
!
hRsrc
)
return
0
;
if
(
!
hRsrc
)
return
0
;
...
@@ -301,7 +304,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
...
@@ -301,7 +304,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
/* 16-bit NE module */
/* 16-bit NE module */
/* If we got a 32-bit hRsrc, we don't need to convert it */
/* If we got a 32-bit hRsrc, we don't need to convert it */
hMem
=
NE_LoadResource
(
pModule
,
LOWORD
(
hRsrc
)
);
hMem
=
HGLOBAL_32
(
NE_LoadResource
(
pModule
,
LOWORD
(
hRsrc
)
)
);
/* If we are to return a 32-bit resource, we should probably
/* If we are to return a 32-bit resource, we should probably
convert it but we don't for now. FIXME !!! */
convert it but we don't for now. FIXME !!! */
...
@@ -321,7 +324,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
...
@@ -321,7 +324,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
DWORD
size
=
SizeofResource
(
hModule
,
hRsrc
);
DWORD
size
=
SizeofResource
(
hModule
,
hRsrc
);
LPVOID
bits
=
LockResource
(
hMem
);
LPVOID
bits
=
LockResource
(
hMem
);
hMem
=
NE_LoadPEResource
(
pModule
,
type
,
bits
,
size
);
hMem
=
HGLOBAL_32
(
NE_LoadPEResource
(
pModule
,
type
,
bits
,
size
)
);
}
}
}
}
}
}
...
@@ -339,7 +342,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
...
@@ -339,7 +342,7 @@ static HGLOBAL RES_LoadResource( HMODULE hModule, HRSRC hRsrc, BOOL bRet16 )
*/
*/
HRSRC16
WINAPI
FindResource16
(
HMODULE16
hModule
,
LPCSTR
name
,
LPCSTR
type
)
HRSRC16
WINAPI
FindResource16
(
HMODULE16
hModule
,
LPCSTR
name
,
LPCSTR
type
)
{
{
return
LOWORD
(
RES_FindResource
(
hModule
,
type
,
name
,
return
LOWORD
(
RES_FindResource
(
HMODULE_32
(
hModule
)
,
type
,
name
,
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_NEUTRAL
),
FALSE
,
TRUE
)
);
MAKELANGID
(
LANG_NEUTRAL
,
SUBLANG_NEUTRAL
),
FALSE
,
TRUE
)
);
}
}
...
@@ -386,7 +389,7 @@ HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
...
@@ -386,7 +389,7 @@ HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
*/
*/
HGLOBAL16
WINAPI
LoadResource16
(
HMODULE16
hModule
,
HRSRC16
hRsrc
)
HGLOBAL16
WINAPI
LoadResource16
(
HMODULE16
hModule
,
HRSRC16
hRsrc
)
{
{
return
RES_LoadResource
(
hModule
,
HRSRC_32
(
hRsrc
),
TRUE
);
return
HGLOBAL_16
(
RES_LoadResource
(
HMODULE_32
(
hModule
),
HRSRC_32
(
hRsrc
),
TRUE
)
);
}
}
/**********************************************************************
/**********************************************************************
...
@@ -420,7 +423,7 @@ LPVOID WINAPI LockResource16( HGLOBAL16 handle )
...
@@ -420,7 +423,7 @@ LPVOID WINAPI LockResource16( HGLOBAL16 handle )
*/
*/
LPVOID
WINAPI
LockResource
(
HGLOBAL
handle
)
LPVOID
WINAPI
LockResource
(
HGLOBAL
handle
)
{
{
TRACE
(
"(%
08x
)
\n
"
,
handle
);
TRACE
(
"(%
p
)
\n
"
,
handle
);
if
(
HIWORD
(
handle
))
/* 32-bit memory handle */
if
(
HIWORD
(
handle
))
/* 32-bit memory handle */
return
(
LPVOID
)
handle
;
return
(
LPVOID
)
handle
;
...
@@ -476,7 +479,7 @@ BOOL WINAPI FreeResource( HGLOBAL handle )
...
@@ -476,7 +479,7 @@ BOOL WINAPI FreeResource( HGLOBAL handle )
*/
*/
DWORD
WINAPI
SizeofResource16
(
HMODULE16
hModule
,
HRSRC16
hRsrc
)
DWORD
WINAPI
SizeofResource16
(
HMODULE16
hModule
,
HRSRC16
hRsrc
)
{
{
return
RES_SizeofResource
(
hModule
,
HRSRC_32
(
hRsrc
),
TRUE
);
return
RES_SizeofResource
(
HMODULE_32
(
hModule
)
,
HRSRC_32
(
hRsrc
),
TRUE
);
}
}
/**********************************************************************
/**********************************************************************
...
...
memory/global.c
View file @
ed800c69
...
@@ -1499,7 +1499,7 @@ UINT WINAPI GlobalFlags(
...
@@ -1499,7 +1499,7 @@ UINT WINAPI GlobalFlags(
}
}
else
else
{
{
WARN
(
"Invalid handle: %
04x
\n
"
,
hmem
);
WARN
(
"Invalid handle: %
p
\n
"
,
hmem
);
retval
=
0
;
retval
=
0
;
}
}
/* HeapUnlock(GetProcessHeap()); */
/* HeapUnlock(GetProcessHeap()); */
...
...
misc/registry.c
View file @
ed800c69
...
@@ -434,7 +434,7 @@ void _w31_loadreg(void)
...
@@ -434,7 +434,7 @@ void _w31_loadreg(void)
return
;
return
;
}
}
if
(
!
GetFileInformationByHandle
(
hf
,
&
hfinfo
))
{
if
(
!
GetFileInformationByHandle
(
(
HANDLE
)
hf
,
&
hfinfo
))
{
ERR
(
"GetFileInformationByHandle failed?.
\n
"
);
ERR
(
"GetFileInformationByHandle failed?.
\n
"
);
free
(
tab
);
free
(
tab
);
free
(
txt
);
free
(
txt
);
...
...
relay32/builtin32.c
View file @
ed800c69
...
@@ -132,7 +132,7 @@ static void load_library( void *base, const char *filename )
...
@@ -132,7 +132,7 @@ static void load_library( void *base, const char *filename )
SetLastError
(
ERROR_OUTOFMEMORY
);
SetLastError
(
ERROR_OUTOFMEMORY
);
return
;
return
;
}
}
TRACE
(
"loaded %s %p %
x
\n
"
,
fullname
,
wm
,
module
);
TRACE
(
"loaded %s %p %
p
\n
"
,
fullname
,
wm
,
module
);
HeapFree
(
GetProcessHeap
(),
0
,
fullname
);
HeapFree
(
GetProcessHeap
(),
0
,
fullname
);
wm
->
refCount
++
;
/* we don't support freeing builtin dlls (FIXME)*/
wm
->
refCount
++
;
/* we don't support freeing builtin dlls (FIXME)*/
...
...
relay32/snoop.c
View file @
ed800c69
...
@@ -143,7 +143,7 @@ SNOOP_RegisterDLL(HMODULE hmod,LPCSTR name,DWORD ordbase,DWORD nrofordinals) {
...
@@ -143,7 +143,7 @@ SNOOP_RegisterDLL(HMODULE hmod,LPCSTR name,DWORD ordbase,DWORD nrofordinals) {
SNOOP_DLL
**
dll
=
&
(
firstdll
);
SNOOP_DLL
**
dll
=
&
(
firstdll
);
char
*
s
;
char
*
s
;
TRACE
(
"hmod=%
x
, name=%s, ordbase=%ld, nrofordinals=%ld
\n
"
,
TRACE
(
"hmod=%
p
, name=%s, ordbase=%ld, nrofordinals=%ld
\n
"
,
hmod
,
name
,
ordbase
,
nrofordinals
);
hmod
,
name
,
ordbase
,
nrofordinals
);
if
(
!
TRACE_ON
(
snoop
))
return
;
if
(
!
TRACE_ON
(
snoop
))
return
;
...
...
scheduler/handle.c
View file @
ed800c69
...
@@ -124,7 +124,7 @@ HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc)
...
@@ -124,7 +124,7 @@ HANDLE WINAPI ConvertToGlobalHandle(HANDLE hSrc)
* SetHandleContext (KERNEL32.@)
* SetHandleContext (KERNEL32.@)
*/
*/
BOOL
WINAPI
SetHandleContext
(
HANDLE
hnd
,
DWORD
context
)
{
BOOL
WINAPI
SetHandleContext
(
HANDLE
hnd
,
DWORD
context
)
{
FIXME
(
"(%
d
,%ld), stub. In case this got called by WSOCK32/WS2_32: the external WINSOCK DLLs won't work with WINE, don't use them.
\n
"
,
hnd
,
context
);
FIXME
(
"(%
p
,%ld), stub. In case this got called by WSOCK32/WS2_32: the external WINSOCK DLLs won't work with WINE, don't use them.
\n
"
,
hnd
,
context
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
return
FALSE
;
}
}
...
@@ -133,7 +133,7 @@ BOOL WINAPI SetHandleContext(HANDLE hnd,DWORD context) {
...
@@ -133,7 +133,7 @@ BOOL WINAPI SetHandleContext(HANDLE hnd,DWORD context) {
* GetHandleContext (KERNEL32.@)
* GetHandleContext (KERNEL32.@)
*/
*/
DWORD
WINAPI
GetHandleContext
(
HANDLE
hnd
)
{
DWORD
WINAPI
GetHandleContext
(
HANDLE
hnd
)
{
FIXME
(
"(%
d
), stub. In case this got called by WSOCK32/WS2_32: the external WINSOCK DLLs won't work with WINE, don't use them.
\n
"
,
hnd
);
FIXME
(
"(%
p
), stub. In case this got called by WSOCK32/WS2_32: the external WINSOCK DLLs won't work with WINE, don't use them.
\n
"
,
hnd
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
0
;
return
0
;
}
}
...
...
scheduler/process.c
View file @
ed800c69
...
@@ -583,7 +583,7 @@ void PROCESS_InitWine( int argc, char *argv[], LPSTR win16_exe_name, HANDLE *win
...
@@ -583,7 +583,7 @@ void PROCESS_InitWine( int argc, char *argv[], LPSTR win16_exe_name, HANDLE *win
argv
++
;
/* remove argv[0] (wine itself) */
argv
++
;
/* remove argv[0] (wine itself) */
TRACE
(
"starting process name=%s file=%
x
argv[0]=%s
\n
"
,
TRACE
(
"starting process name=%s file=%
p
argv[0]=%s
\n
"
,
debugstr_a
(
main_exe_name
),
main_exe_file
,
debugstr_a
(
argv
[
0
])
);
debugstr_a
(
main_exe_name
),
main_exe_file
,
debugstr_a
(
argv
[
0
])
);
if
(
!
main_exe_name
[
0
])
if
(
!
main_exe_name
[
0
])
...
@@ -1635,7 +1635,7 @@ DWORD WINAPI GetProcessFlags( DWORD processid )
...
@@ -1635,7 +1635,7 @@ DWORD WINAPI GetProcessFlags( DWORD processid )
BOOL
WINAPI
SetProcessWorkingSetSize
(
HANDLE
hProcess
,
SIZE_T
minset
,
BOOL
WINAPI
SetProcessWorkingSetSize
(
HANDLE
hProcess
,
SIZE_T
minset
,
SIZE_T
maxset
)
SIZE_T
maxset
)
{
{
FIXME
(
"(0x%
08x
,%ld,%ld): stub - harmless
\n
"
,
hProcess
,
minset
,
maxset
);
FIXME
(
"(0x%
p
,%ld,%ld): stub - harmless
\n
"
,
hProcess
,
minset
,
maxset
);
if
((
minset
==
(
SIZE_T
)
-
1
)
&&
(
maxset
==
(
SIZE_T
)
-
1
))
{
if
((
minset
==
(
SIZE_T
)
-
1
)
&&
(
maxset
==
(
SIZE_T
)
-
1
))
{
/* Trim the working set to zero */
/* Trim the working set to zero */
/* Swap the process out of physical RAM */
/* Swap the process out of physical RAM */
...
@@ -1649,7 +1649,7 @@ BOOL WINAPI SetProcessWorkingSetSize(HANDLE hProcess, SIZE_T minset,
...
@@ -1649,7 +1649,7 @@ BOOL WINAPI SetProcessWorkingSetSize(HANDLE hProcess, SIZE_T minset,
BOOL
WINAPI
GetProcessWorkingSetSize
(
HANDLE
hProcess
,
PSIZE_T
minset
,
BOOL
WINAPI
GetProcessWorkingSetSize
(
HANDLE
hProcess
,
PSIZE_T
minset
,
PSIZE_T
maxset
)
PSIZE_T
maxset
)
{
{
FIXME
(
"(0x%
08x
,%p,%p): stub
\n
"
,
hProcess
,
minset
,
maxset
);
FIXME
(
"(0x%
p
,%p,%p): stub
\n
"
,
hProcess
,
minset
,
maxset
);
/* 32 MB working set size */
/* 32 MB working set size */
if
(
minset
)
*
minset
=
32
*
1024
*
1024
;
if
(
minset
)
*
minset
=
32
*
1024
*
1024
;
if
(
maxset
)
*
maxset
=
32
*
1024
*
1024
;
if
(
maxset
)
*
maxset
=
32
*
1024
*
1024
;
...
@@ -1691,7 +1691,7 @@ BOOL WINAPI GetProcessShutdownParameters( LPDWORD lpdwLevel, LPDWORD lpdwFlags )
...
@@ -1691,7 +1691,7 @@ BOOL WINAPI GetProcessShutdownParameters( LPDWORD lpdwLevel, LPDWORD lpdwFlags )
*/
*/
BOOL
WINAPI
SetProcessPriorityBoost
(
HANDLE
hprocess
,
BOOL
disableboost
)
BOOL
WINAPI
SetProcessPriorityBoost
(
HANDLE
hprocess
,
BOOL
disableboost
)
{
{
FIXME
(
"(%
d
,%d): stub
\n
"
,
hprocess
,
disableboost
);
FIXME
(
"(%
p
,%d): stub
\n
"
,
hprocess
,
disableboost
);
/* Say we can do it. I doubt the program will notice that we don't. */
/* Say we can do it. I doubt the program will notice that we don't. */
return
TRUE
;
return
TRUE
;
}
}
...
...
scheduler/syslevel.c
View file @
ed800c69
...
@@ -70,7 +70,7 @@ VOID WINAPI _CreateSysLevel(SYSLEVEL *lock, INT level)
...
@@ -70,7 +70,7 @@ VOID WINAPI _CreateSysLevel(SYSLEVEL *lock, INT level)
InitializeCriticalSection
(
&
lock
->
crst
);
InitializeCriticalSection
(
&
lock
->
crst
);
lock
->
level
=
level
;
lock
->
level
=
level
;
TRACE
(
"(%p, %d): handle is %
d
\n
"
,
TRACE
(
"(%p, %d): handle is %
p
\n
"
,
lock
,
level
,
lock
->
crst
.
LockSemaphore
);
lock
,
level
,
lock
->
crst
.
LockSemaphore
);
}
}
...
...
scheduler/thread.c
View file @
ed800c69
...
@@ -562,7 +562,7 @@ DWORD WINAPI SetThreadIdealProcessor(
...
@@ -562,7 +562,7 @@ DWORD WINAPI SetThreadIdealProcessor(
HANDLE
hThread
,
/* [in] Specifies the thread of interest */
HANDLE
hThread
,
/* [in] Specifies the thread of interest */
DWORD
dwIdealProcessor
)
/* [in] Specifies the new preferred processor */
DWORD
dwIdealProcessor
)
/* [in] Specifies the new preferred processor */
{
{
FIXME
(
"(0x%
08x
): stub
\n
"
,
hThread
);
FIXME
(
"(0x%
p
): stub
\n
"
,
hThread
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
-
1L
;
return
-
1L
;
}
}
...
@@ -691,7 +691,7 @@ BOOL WINAPI GetThreadTimes(
...
@@ -691,7 +691,7 @@ BOOL WINAPI GetThreadTimes(
LPFILETIME
kerneltime
,
/* [out] Time thread spent in kernel mode */
LPFILETIME
kerneltime
,
/* [out] Time thread spent in kernel mode */
LPFILETIME
usertime
)
/* [out] Time thread spent in user mode */
LPFILETIME
usertime
)
/* [out] Time thread spent in user mode */
{
{
FIXME
(
"(0x%
08x
): stub
\n
"
,
thread
);
FIXME
(
"(0x%
p
): stub
\n
"
,
thread
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
return
FALSE
;
}
}
...
...
win32/device.c
View file @
ed800c69
...
@@ -408,7 +408,7 @@ BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
...
@@ -408,7 +408,7 @@ BOOL WINAPI DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
{
{
DWORD
clientID
;
DWORD
clientID
;
TRACE
(
"(%
d
,%ld,%p,%ld,%p,%ld,%p,%p)
\n
"
,
TRACE
(
"(%
p
,%ld,%p,%ld,%p,%ld,%p,%p)
\n
"
,
hDevice
,
dwIoControlCode
,
lpvInBuffer
,
cbInBuffer
,
hDevice
,
dwIoControlCode
,
lpvInBuffer
,
cbInBuffer
,
lpvOutBuffer
,
cbOutBuffer
,
lpcbBytesReturned
,
lpOverlapped
);
lpvOutBuffer
,
cbOutBuffer
,
lpcbBytesReturned
,
lpOverlapped
);
...
@@ -639,7 +639,7 @@ static HKEY create_special_root_hkey( HKEY hkey, DWORD access )
...
@@ -639,7 +639,7 @@ static HKEY create_special_root_hkey( HKEY hkey, DWORD access )
if
(
NtCreateKey
(
&
hkey
,
access
,
&
attr
,
0
,
NULL
,
0
,
NULL
))
return
0
;
if
(
NtCreateKey
(
&
hkey
,
access
,
&
attr
,
0
,
NULL
,
0
,
NULL
))
return
0
;
}
}
if
(
!
(
ret
=
InterlockedCompareExchange
(
(
PLONG
)
&
special_root_keys
[
idx
],
hkey
,
0
)))
if
(
!
(
ret
=
InterlockedCompareExchange
Pointer
(
(
PVOID
)
&
special_root_keys
[
idx
],
hkey
,
0
)))
ret
=
hkey
;
ret
=
hkey
;
else
else
NtClose
(
hkey
);
/* somebody beat us to it */
NtClose
(
hkey
);
/* somebody beat us to it */
...
@@ -952,7 +952,7 @@ static DWORD VMM_RegEnumValueA( HKEY hkey, DWORD index, LPSTR value, LPDWORD val
...
@@ -952,7 +952,7 @@ static DWORD VMM_RegEnumValueA( HKEY hkey, DWORD index, LPSTR value, LPDWORD val
KEY_VALUE_FULL_INFORMATION
*
info
=
(
KEY_VALUE_FULL_INFORMATION
*
)
buffer
;
KEY_VALUE_FULL_INFORMATION
*
info
=
(
KEY_VALUE_FULL_INFORMATION
*
)
buffer
;
static
const
int
info_size
=
offsetof
(
KEY_VALUE_FULL_INFORMATION
,
Name
);
static
const
int
info_size
=
offsetof
(
KEY_VALUE_FULL_INFORMATION
,
Name
);
TRACE
(
"(%
x
,%ld,%p,%p,%p,%p,%p,%p)
\n
"
,
TRACE
(
"(%
p
,%ld,%p,%p,%p,%p,%p,%p)
\n
"
,
hkey
,
index
,
value
,
val_count
,
reserved
,
type
,
data
,
count
);
hkey
,
index
,
value
,
val_count
,
reserved
,
type
,
data
,
count
);
/* NT only checks count, not val_count */
/* NT only checks count, not val_count */
...
@@ -1227,7 +1227,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
...
@@ -1227,7 +1227,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
case
0x001C
:
/* RegFlushKey */
case
0x001C
:
/* RegFlushKey */
{
{
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
FIXME
(
"RegFlushKey(%
x
): stub
\n
"
,
hkey
);
FIXME
(
"RegFlushKey(%
p
): stub
\n
"
,
hkey
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -1252,7 +1252,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
...
@@ -1252,7 +1252,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
LPCSTR
lpszSubKey
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszSubKey
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszFile
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszFile
=
(
LPCSTR
)
stack32_pop
(
context
);
FIXME
(
"RegLoadKey(%
x
,%s,%s): stub
\n
"
,
hkey
,
debugstr_a
(
lpszSubKey
),
debugstr_a
(
lpszFile
));
FIXME
(
"RegLoadKey(%
p
,%s,%s): stub
\n
"
,
hkey
,
debugstr_a
(
lpszSubKey
),
debugstr_a
(
lpszFile
));
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -1260,7 +1260,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
...
@@ -1260,7 +1260,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
{
{
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
LPCSTR
lpszSubKey
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszSubKey
=
(
LPCSTR
)
stack32_pop
(
context
);
FIXME
(
"RegUnLoadKey(%
x
,%s): stub
\n
"
,
hkey
,
debugstr_a
(
lpszSubKey
));
FIXME
(
"RegUnLoadKey(%
p
,%s): stub
\n
"
,
hkey
,
debugstr_a
(
lpszSubKey
));
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -1269,7 +1269,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
...
@@ -1269,7 +1269,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
HKEY
hkey
=
(
HKEY
)
stack32_pop
(
context
);
LPCSTR
lpszFile
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszFile
=
(
LPCSTR
)
stack32_pop
(
context
);
LPSECURITY_ATTRIBUTES
sa
=
(
LPSECURITY_ATTRIBUTES
)
stack32_pop
(
context
);
LPSECURITY_ATTRIBUTES
sa
=
(
LPSECURITY_ATTRIBUTES
)
stack32_pop
(
context
);
FIXME
(
"RegSaveKey(%
x
,%s,%p): stub
\n
"
,
hkey
,
debugstr_a
(
lpszFile
),
sa
);
FIXME
(
"RegSaveKey(%
p
,%s,%p): stub
\n
"
,
hkey
,
debugstr_a
(
lpszFile
),
sa
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -1284,7 +1284,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
...
@@ -1284,7 +1284,7 @@ static DWORD VxDCall_VMM( DWORD service, CONTEXT86 *context )
LPCSTR
lpszSubKey
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszSubKey
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszNewFile
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszNewFile
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszOldFile
=
(
LPCSTR
)
stack32_pop
(
context
);
LPCSTR
lpszOldFile
=
(
LPCSTR
)
stack32_pop
(
context
);
FIXME
(
"RegReplaceKey(%
x
,%s,%s,%s): stub
\n
"
,
hkey
,
debugstr_a
(
lpszSubKey
),
FIXME
(
"RegReplaceKey(%
p
,%s,%s,%s): stub
\n
"
,
hkey
,
debugstr_a
(
lpszSubKey
),
debugstr_a
(
lpszNewFile
),
debugstr_a
(
lpszOldFile
));
debugstr_a
(
lpszNewFile
),
debugstr_a
(
lpszOldFile
));
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -2124,7 +2124,7 @@ static BOOL DeviceIo_PCCARD (DWORD dwIoControlCode,
...
@@ -2124,7 +2124,7 @@ static BOOL DeviceIo_PCCARD (DWORD dwIoControlCode,
*/
*/
HANDLE
WINAPI
OpenVxDHandle
(
HANDLE
hHandleRing3
)
HANDLE
WINAPI
OpenVxDHandle
(
HANDLE
hHandleRing3
)
{
{
FIXME
(
"(0x%
08x
), stub! (returning Ring 3 handle instead of Ring 0)
\n
"
,
hHandleRing3
);
FIXME
(
"(0x%
p
), stub! (returning Ring 3 handle instead of Ring 0)
\n
"
,
hHandleRing3
);
return
hHandleRing3
;
return
hHandleRing3
;
}
}
...
...
win32/except.c
View file @
ed800c69
...
@@ -304,7 +304,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
...
@@ -304,7 +304,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
else
else
{
{
cmdline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
80
);
cmdline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
80
);
sprintf
(
cmdline
,
"winedbg --debugmsg -all --auto %ld %
d
"
,
GetCurrentProcessId
(),
hEvent
);
sprintf
(
cmdline
,
"winedbg --debugmsg -all --auto %ld %
p
"
,
GetCurrentProcessId
(),
hEvent
);
}
}
if
(
!
bAuto
)
if
(
!
bAuto
)
...
@@ -370,7 +370,7 @@ static int start_debugger_atomic(PEXCEPTION_POINTERS epointers)
...
@@ -370,7 +370,7 @@ static int start_debugger_atomic(PEXCEPTION_POINTERS epointers)
/* ask for manual reset, so that once the debugger is started,
/* ask for manual reset, so that once the debugger is started,
* every thread will know it */
* every thread will know it */
NtCreateEvent
(
&
hEvent
,
EVENT_ALL_ACCESS
,
&
attr
,
TRUE
,
FALSE
);
NtCreateEvent
(
&
hEvent
,
EVENT_ALL_ACCESS
,
&
attr
,
TRUE
,
FALSE
);
if
(
InterlockedCompareExchange
(
(
LPLONG
)
&
hRunOnce
,
hEvent
,
0
)
==
0
)
if
(
InterlockedCompareExchange
Pointer
(
(
PVOID
)
&
hRunOnce
,
hEvent
,
0
)
==
0
)
{
{
/* ok, our event has been set... we're the winning thread */
/* ok, our event has been set... we're the winning thread */
BOOL
ret
=
start_debugger
(
epointers
,
hRunOnce
);
BOOL
ret
=
start_debugger
(
epointers
,
hRunOnce
);
...
...
win32/newfns.c
View file @
ed800c69
...
@@ -246,7 +246,7 @@ BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize,
...
@@ -246,7 +246,7 @@ BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize,
LPDWORD
lpNextSize
,
LPDWORD
lpMessageCount
,
LPDWORD
lpNextSize
,
LPDWORD
lpMessageCount
,
LPDWORD
lpReadTimeout
)
LPDWORD
lpReadTimeout
)
{
{
FIXME
(
"(%
04x
): stub
\n
"
,
hMailslot
);
FIXME
(
"(%
p
): stub
\n
"
,
hMailslot
);
if
(
lpMaxMessageSize
)
*
lpMaxMessageSize
=
(
DWORD
)
NULL
;
if
(
lpMaxMessageSize
)
*
lpMaxMessageSize
=
(
DWORD
)
NULL
;
if
(
lpNextSize
)
*
lpNextSize
=
(
DWORD
)
NULL
;
if
(
lpNextSize
)
*
lpNextSize
=
(
DWORD
)
NULL
;
if
(
lpMessageCount
)
*
lpMessageCount
=
(
DWORD
)
NULL
;
if
(
lpMessageCount
)
*
lpMessageCount
=
(
DWORD
)
NULL
;
...
@@ -293,7 +293,7 @@ HANDLE WINAPI CreateIoCompletionPort(HANDLE hFileHandle,
...
@@ -293,7 +293,7 @@ HANDLE WINAPI CreateIoCompletionPort(HANDLE hFileHandle,
HANDLE
hExistingCompletionPort
,
DWORD
dwCompletionKey
,
HANDLE
hExistingCompletionPort
,
DWORD
dwCompletionKey
,
DWORD
dwNumberOfConcurrentThreads
)
DWORD
dwNumberOfConcurrentThreads
)
{
{
FIXME
(
"(%
04x, %04x
, %08lx, %08lx): stub.
\n
"
,
hFileHandle
,
hExistingCompletionPort
,
dwCompletionKey
,
dwNumberOfConcurrentThreads
);
FIXME
(
"(%
p, %p
, %08lx, %08lx): stub.
\n
"
,
hFileHandle
,
hExistingCompletionPort
,
dwCompletionKey
,
dwNumberOfConcurrentThreads
);
return
(
HANDLE
)
NULL
;
return
(
HANDLE
)
NULL
;
}
}
...
@@ -304,7 +304,7 @@ BOOL WINAPI GetQueuedCompletionStatus(
...
@@ -304,7 +304,7 @@ BOOL WINAPI GetQueuedCompletionStatus(
HANDLE
CompletionPort
,
LPDWORD
lpNumberOfBytesTransferred
,
HANDLE
CompletionPort
,
LPDWORD
lpNumberOfBytesTransferred
,
LPDWORD
lpCompletionKey
,
LPOVERLAPPED
*
lpOverlapped
,
DWORD
dwMilliseconds
LPDWORD
lpCompletionKey
,
LPOVERLAPPED
*
lpOverlapped
,
DWORD
dwMilliseconds
)
{
)
{
FIXME
(
"(%
x
,%p,%p,%p,%ld), stub!
\n
"
,
CompletionPort
,
lpNumberOfBytesTransferred
,
lpCompletionKey
,
lpOverlapped
,
dwMilliseconds
);
FIXME
(
"(%
p
,%p,%p,%p,%ld), stub!
\n
"
,
CompletionPort
,
lpNumberOfBytesTransferred
,
lpCompletionKey
,
lpOverlapped
,
dwMilliseconds
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
return
FALSE
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment