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
912d98c2
Commit
912d98c2
authored
Feb 16, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Improve debugging helper for object attributes structure.
parent
d62d6ac9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
24 deletions
+18
-24
misc.c
dlls/ntdll/misc.c
+5
-5
nt.c
dlls/ntdll/nt.c
+3
-4
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+2
-2
om.c
dlls/ntdll/om.c
+5
-9
reg.c
dlls/ntdll/reg.c
+3
-4
No files found.
dlls/ntdll/misc.c
View file @
912d98c2
...
...
@@ -37,12 +37,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
#define POP_FPU(x) DO_FPU("fstpl",x)
#endif
void
dump_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
oa
)
LPCSTR
debugstr_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
oa
)
{
if
(
oa
)
TRACE
(
"%p:(name=%s, attr=0x%08x, hRoot=%p, sd=%p)
\n
"
,
oa
,
debugstr_us
(
oa
->
ObjectName
)
,
oa
->
Attributes
,
oa
->
RootDirectory
,
oa
->
SecurityDescriptor
);
if
(
!
oa
)
return
"<null>"
;
return
wine_dbg_sprintf
(
"{name=%s, attr=0x%08x, hRoot=%p, sd=%p}
\n
"
,
debugstr_us
(
oa
->
ObjectName
),
oa
->
Attributes
,
oa
->
RootDirectory
,
oa
->
SecurityDescriptor
);
}
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
us
)
...
...
dlls/ntdll/nt.c
View file @
912d98c2
...
...
@@ -63,10 +63,9 @@ NTSTATUS WINAPI NtDuplicateToken(
{
NTSTATUS
status
;
TRACE
(
"(%p,0x%08x,%p,0x%08x,0x%08x,%p)
\n
"
,
ExistingToken
,
DesiredAccess
,
ObjectAttributes
,
ImpersonationLevel
,
TokenType
,
NewToken
);
dump_ObjectAttributes
(
ObjectAttributes
);
TRACE
(
"(%p,0x%08x,%s,0x%08x,0x%08x,%p)
\n
"
,
ExistingToken
,
DesiredAccess
,
debugstr_ObjectAttributes
(
ObjectAttributes
),
ImpersonationLevel
,
TokenType
,
NewToken
);
if
(
ObjectAttributes
&&
ObjectAttributes
->
SecurityQualityOfService
)
{
...
...
dlls/ntdll/ntdll_misc.h
View file @
912d98c2
...
...
@@ -43,9 +43,9 @@ extern void wait_suspend( CONTEXT *context );
extern
void
WINAPI
__regs_RtlRaiseException
(
PEXCEPTION_RECORD
,
PCONTEXT
);
extern
void
set_cpu_context
(
const
CONTEXT
*
context
);
/* debug helper */
/* debug helper
s
*/
extern
LPCSTR
debugstr_us
(
const
UNICODE_STRING
*
str
);
extern
void
dump_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
ObjectAttributes
);
extern
LPCSTR
debugstr_ObjectAttributes
(
const
OBJECT_ATTRIBUTES
*
oa
);
extern
NTSTATUS
NTDLL_queue_process_apc
(
HANDLE
process
,
const
apc_call_t
*
call
,
apc_result_t
*
result
);
extern
NTSTATUS
NTDLL_wait_for_multiple_objects
(
UINT
count
,
const
HANDLE
*
handles
,
UINT
flags
,
...
...
dlls/ntdll/om.c
View file @
912d98c2
...
...
@@ -332,8 +332,7 @@ NTSTATUS WINAPI NtOpenDirectoryObject(PHANDLE DirectoryHandle, ACCESS_MASK Desir
POBJECT_ATTRIBUTES
ObjectAttributes
)
{
NTSTATUS
ret
;
TRACE
(
"(%p,0x%08x)
\n
"
,
DirectoryHandle
,
DesiredAccess
);
dump_ObjectAttributes
(
ObjectAttributes
);
TRACE
(
"(%p,0x%08x,%s)
\n
"
,
DirectoryHandle
,
DesiredAccess
,
debugstr_ObjectAttributes
(
ObjectAttributes
));
if
(
!
DirectoryHandle
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
ObjectAttributes
)
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -381,8 +380,7 @@ NTSTATUS WINAPI NtCreateDirectoryObject(PHANDLE DirectoryHandle, ACCESS_MASK Des
POBJECT_ATTRIBUTES
ObjectAttributes
)
{
NTSTATUS
ret
;
TRACE
(
"(%p,0x%08x)
\n
"
,
DirectoryHandle
,
DesiredAccess
);
dump_ObjectAttributes
(
ObjectAttributes
);
TRACE
(
"(%p,0x%08x,%s)
\n
"
,
DirectoryHandle
,
DesiredAccess
,
debugstr_ObjectAttributes
(
ObjectAttributes
));
if
(
!
DirectoryHandle
)
return
STATUS_ACCESS_VIOLATION
;
...
...
@@ -489,8 +487,7 @@ NTSTATUS WINAPI NtOpenSymbolicLinkObject(OUT PHANDLE LinkHandle, IN ACCESS_MASK
IN
POBJECT_ATTRIBUTES
ObjectAttributes
)
{
NTSTATUS
ret
;
TRACE
(
"(%p,0x%08x,%p)
\n
"
,
LinkHandle
,
DesiredAccess
,
ObjectAttributes
);
dump_ObjectAttributes
(
ObjectAttributes
);
TRACE
(
"(%p,0x%08x,%s)
\n
"
,
LinkHandle
,
DesiredAccess
,
debugstr_ObjectAttributes
(
ObjectAttributes
));
if
(
!
LinkHandle
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
ObjectAttributes
)
return
STATUS_INVALID_PARAMETER
;
...
...
@@ -544,9 +541,8 @@ NTSTATUS WINAPI NtCreateSymbolicLinkObject(OUT PHANDLE SymbolicLinkHandle,IN ACC
if
(
!
SymbolicLinkHandle
||
!
TargetName
)
return
STATUS_ACCESS_VIOLATION
;
if
(
!
TargetName
->
Buffer
)
return
STATUS_INVALID_PARAMETER
;
TRACE
(
"(%p,0x%08x,%p, -> %s)
\n
"
,
SymbolicLinkHandle
,
DesiredAccess
,
ObjectAttributes
,
debugstr_us
(
TargetName
));
dump_ObjectAttributes
(
ObjectAttributes
);
TRACE
(
"(%p,0x%08x,%s -> %s)
\n
"
,
SymbolicLinkHandle
,
DesiredAccess
,
debugstr_ObjectAttributes
(
ObjectAttributes
),
debugstr_us
(
TargetName
));
SERVER_START_REQ
(
create_symlink
)
{
...
...
dlls/ntdll/reg.c
View file @
912d98c2
...
...
@@ -693,10 +693,9 @@ NTSTATUS WINAPI NtReplaceKey(
IN
HANDLE
Key
,
IN
POBJECT_ATTRIBUTES
ReplacedObjectAttributes
)
{
FIXME
(
"(%p),stub!
\n
"
,
Key
);
dump_ObjectAttributes
(
ObjectAttributes
);
dump_ObjectAttributes
(
ReplacedObjectAttributes
);
return
STATUS_SUCCESS
;
FIXME
(
"(%s,%p,%s),stub!
\n
"
,
debugstr_ObjectAttributes
(
ObjectAttributes
),
Key
,
debugstr_ObjectAttributes
(
ReplacedObjectAttributes
)
);
return
STATUS_SUCCESS
;
}
/******************************************************************************
* NtRestoreKey [NTDLL.@]
...
...
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