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
f8313855
Commit
f8313855
authored
Jan 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Convert the DbgPrint* functions to use MS ABI varargs.
parent
649a576f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
12 deletions
+15
-12
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+3
-0
rtl.c
dlls/ntdll/rtl.c
+10
-10
winternl.h
include/winternl.h
+2
-2
No files found.
dlls/ntdll/ntdll_misc.h
View file @
f8313855
...
...
@@ -156,6 +156,9 @@ extern int ntdll_umbstowcs(DWORD flags, const char* src, int srclen, WCHAR* dst,
extern
int
ntdll_wcstoumbs
(
DWORD
flags
,
const
WCHAR
*
src
,
int
srclen
,
char
*
dst
,
int
dstlen
,
const
char
*
defchar
,
int
*
used
);
extern
int
CDECL
NTDLL__vsnprintf
(
char
*
str
,
SIZE_T
len
,
const
char
*
format
,
__ms_va_list
args
);
extern
int
CDECL
NTDLL__vsnwprintf
(
WCHAR
*
str
,
SIZE_T
len
,
const
WCHAR
*
format
,
__ms_va_list
args
);
/* load order */
enum
loadorder
...
...
dlls/ntdll/rtl.c
View file @
f8313855
...
...
@@ -303,11 +303,11 @@ void WINAPI RtlDumpResource(LPRTL_RWLOCK rwl)
NTSTATUS
WINAPIV
DbgPrint
(
LPCSTR
fmt
,
...)
{
char
buf
[
512
];
va_list
args
;
__ms_
va_list
args
;
va_start
(
args
,
fmt
);
vsprintf
(
buf
,
fmt
,
args
);
va_end
(
args
);
__ms_
va_start
(
args
,
fmt
);
NTDLL__vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
args
);
__ms_
va_end
(
args
);
MESSAGE
(
"DbgPrint says: %s"
,
buf
);
/* hmm, raise exception? */
...
...
@@ -321,18 +321,18 @@ NTSTATUS WINAPIV DbgPrint(LPCSTR fmt, ...)
NTSTATUS
WINAPIV
DbgPrintEx
(
ULONG
iComponentId
,
ULONG
Level
,
LPCSTR
fmt
,
...)
{
NTSTATUS
ret
;
va_list
args
;
__ms_
va_list
args
;
va_start
(
args
,
fmt
);
__ms_
va_start
(
args
,
fmt
);
ret
=
vDbgPrintEx
(
iComponentId
,
Level
,
fmt
,
args
);
va_end
(
args
);
__ms_
va_end
(
args
);
return
ret
;
}
/******************************************************************************
* vDbgPrintEx [NTDLL.@]
*/
NTSTATUS
WINAPI
vDbgPrintEx
(
ULONG
id
,
ULONG
level
,
LPCSTR
fmt
,
va_list
args
)
NTSTATUS
WINAPI
vDbgPrintEx
(
ULONG
id
,
ULONG
level
,
LPCSTR
fmt
,
__ms_
va_list
args
)
{
return
vDbgPrintExWithPrefix
(
""
,
id
,
level
,
fmt
,
args
);
}
...
...
@@ -340,11 +340,11 @@ NTSTATUS WINAPI vDbgPrintEx( ULONG id, ULONG level, LPCSTR fmt, va_list args )
/******************************************************************************
* vDbgPrintExWithPrefix [NTDLL.@]
*/
NTSTATUS
WINAPI
vDbgPrintExWithPrefix
(
LPCSTR
prefix
,
ULONG
id
,
ULONG
level
,
LPCSTR
fmt
,
va_list
args
)
NTSTATUS
WINAPI
vDbgPrintExWithPrefix
(
LPCSTR
prefix
,
ULONG
id
,
ULONG
level
,
LPCSTR
fmt
,
__ms_
va_list
args
)
{
char
buf
[
1024
];
vsprintf
(
buf
,
fmt
,
args
);
NTDLL__vsnprintf
(
buf
,
sizeof
(
buf
)
,
fmt
,
args
);
switch
(
level
&
DPFLTR_MASK
)
{
...
...
include/winternl.h
View file @
f8313855
...
...
@@ -2508,8 +2508,8 @@ NTSYSAPI NTSTATUS WINAPI RtlpNtCreateKey(PHANDLE,ACCESS_MASK,const OBJECT_ATTRI
NTSYSAPI
NTSTATUS
WINAPI
RtlpNtEnumerateSubKey
(
HANDLE
,
UNICODE_STRING
*
,
ULONG
);
NTSYSAPI
NTSTATUS
WINAPI
RtlpWaitForCriticalSection
(
RTL_CRITICAL_SECTION
*
);
NTSYSAPI
NTSTATUS
WINAPI
RtlpUnWaitCriticalSection
(
RTL_CRITICAL_SECTION
*
);
NTSYSAPI
NTSTATUS
WINAPI
vDbgPrintEx
(
ULONG
,
ULONG
,
LPCSTR
,
va_list
);
NTSYSAPI
NTSTATUS
WINAPI
vDbgPrintExWithPrefix
(
LPCSTR
,
ULONG
,
ULONG
,
LPCSTR
,
va_list
);
NTSYSAPI
NTSTATUS
WINAPI
vDbgPrintEx
(
ULONG
,
ULONG
,
LPCSTR
,
__ms_
va_list
);
NTSYSAPI
NTSTATUS
WINAPI
vDbgPrintExWithPrefix
(
LPCSTR
,
ULONG
,
ULONG
,
LPCSTR
,
__ms_
va_list
);
/* Wine internal functions */
...
...
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