[PATCH 2/4] dlls/ntdll/unix: don't use long types when possible
Eric Pouech
eric.pouech at gmail.com
Wed Feb 16 01:31:50 CST 2022
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/ntdll/unix/debug.c | 2 +-
dlls/ntdll/unix/env.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/ntdll/unix/debug.c b/dlls/ntdll/unix/debug.c
index 0024d494c43..e91cf95ada4 100644
--- a/dlls/ntdll/unix/debug.c
+++ b/dlls/ntdll/unix/debug.c
@@ -299,7 +299,7 @@ int __cdecl __wine_dbg_header( enum __wine_debug_class cls, struct __wine_debug_
{
if (TRACE_ON(timestamp))
{
- ULONG ticks = NtGetTickCount();
+ unsigned int ticks = NtGetTickCount();
pos += sprintf( pos, "%3u.%03u:", ticks / 1000, ticks % 1000 );
}
if (TRACE_ON(pid)) pos += sprintf( pos, "%04x:", GetCurrentProcessId() );
diff --git a/dlls/ntdll/unix/env.c b/dlls/ntdll/unix/env.c
index c7e0674e083..ffa6fcd3657 100644
--- a/dlls/ntdll/unix/env.c
+++ b/dlls/ntdll/unix/env.c
@@ -97,7 +97,7 @@ enum nls_section_type
NLS_SECTION_NORMALIZE = 12
};
-static char *get_nls_file_path( ULONG type, ULONG id )
+static char *get_nls_file_path( unsigned int type, unsigned int id )
{
const char *dir = build_dir ? build_dir : data_dir;
const char *name = NULL;
@@ -125,7 +125,7 @@ static char *get_nls_file_path( ULONG type, ULONG id )
return path;
}
-static void *read_nls_file( ULONG type, ULONG id )
+static void *read_nls_file( unsigned int type, unsigned int id )
{
char *path = get_nls_file_path( type, id );
struct stat st;
@@ -185,7 +185,7 @@ static NTSTATUS open_nls_data_file( ULONG type, ULONG id, HANDLE *file )
return status;
}
-static NTSTATUS get_nls_section_name( ULONG type, ULONG id, WCHAR name[32] )
+static NTSTATUS get_nls_section_name( unsigned int type, unsigned id, WCHAR name[32] )
{
char buffer[32];
@@ -1341,7 +1341,7 @@ static void add_system_dll_path_var( WCHAR **env, SIZE_T *pos, SIZE_T *size )
static void add_dynamic_environment( WCHAR **env, SIZE_T *pos, SIZE_T *size )
{
const char *overrides = getenv( "WINEDLLOVERRIDES" );
- DWORD i;
+ unsigned int i;
char str[22];
add_path_var( env, pos, size, "WINEDATADIR", data_dir );
@@ -1833,7 +1833,7 @@ static WCHAR *build_command_line( WCHAR **wargv )
*p = 0;
if (p - ret >= 32767)
{
- ERR( "command line too long (%u)\n", (DWORD)(p - ret) );
+ ERR( "command line too long (%tu)\n", p - ret );
NtTerminateProcess( GetCurrentProcess(), 1 );
}
return ret;
More information about the wine-devel
mailing list