summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ntapi/nt_debug.h10
-rw-r--r--src/internal/ntapi_debug.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/include/ntapi/nt_debug.h b/include/ntapi/nt_debug.h
index bd07dcc..e73d75a 100644
--- a/include/ntapi/nt_debug.h
+++ b/include/ntapi/nt_debug.h
@@ -12,20 +12,20 @@ typedef ssize_t __cdecl ntapi_dbg_write(
typedef int32_t __cdecl ntapi_dbg_fn_call(
__in void * hfile __optional,
- __in char * fn_caller_name,
+ __in const char * fn_caller_name,
__in void * fn_callee_addr,
__in uintptr_t fn_ret,
__in ntapi_dbg_write* pfn_dbg_write __optional,
- __in char * source __optional,
+ __in const char * source __optional,
__in int line __optional);
typedef int32_t __cdecl ntapi_dbg_msg(
__in void * hfile __optional,
- __in char * source __optional,
+ __in const char * source __optional,
__in int line __optional,
- __in char * fn_caller_name,
- __in char * fmt,
+ __in const char * fn_caller_name,
+ __in const char * fmt,
__in uintptr_t arg1,
__in uintptr_t arg2,
__in uintptr_t arg3,
diff --git a/src/internal/ntapi_debug.c b/src/internal/ntapi_debug.c
index 4d4a695..3d11faa 100644
--- a/src/internal/ntapi_debug.c
+++ b/src/internal/ntapi_debug.c
@@ -39,11 +39,11 @@ ssize_t __cdecl __dbg_write(
int32_t __cdecl __dbg_fn_call(
__in void * hfile __optional,
- __in char * fn_caller_name,
+ __in const char * fn_caller_name,
__in void * fn_callee_addr,
__in uintptr_t fn_ret,
__in ntapi_dbg_write* pfn_dbg_write __optional,
- __in char * source __optional,
+ __in const char * source __optional,
__in int line __optional)
{
struct pe_ldr_tbl_entry * image_meta;
@@ -113,10 +113,10 @@ int32_t __cdecl __dbg_fn_call(
int32_t __cdecl __dbg_msg(
__in void * hfile __optional,
- __in char * source __optional,
+ __in const char * source __optional,
__in int line __optional,
- __in char * fn_caller_name,
- __in char * fmt,
+ __in const char * fn_caller_name,
+ __in const char * fmt,
__in uintptr_t arg1,
__in uintptr_t arg2,
__in uintptr_t arg3,