Alexandre Julliard : winefile: Pass a value instead of a pointer to avoid type mismatch warnings.
Alexandre Julliard
julliard at winehq.org
Wed Mar 13 17:10:07 CDT 2013
Module: wine
Branch: master
Commit: c0e85b9fe6a1d4a58b621e29e0cd0359c2685d3b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c0e85b9fe6a1d4a58b621e29e0cd0359c2685d3b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Mar 13 12:47:07 2013 +0100
winefile: Pass a value instead of a pointer to avoid type mismatch warnings.
---
programs/winefile/winefile.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 23388c1..65f0149 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -465,9 +465,9 @@ static Entry* read_tree_win(Root* root, LPCWSTR path, SORT_ORDER sortOrder, HWND
#ifdef __WINE__
-static BOOL time_to_filetime(const time_t* t, FILETIME* ftime)
+static BOOL time_to_filetime(time_t t, FILETIME* ftime)
{
- struct tm* tm = gmtime(t);
+ struct tm* tm = gmtime(&t);
SYSTEMTIME stime;
if (!tm)
@@ -534,8 +534,8 @@ static void read_directory_unix(Entry* dir, LPCWSTR path)
entry->data.nFileSizeHigh = st.st_size >> 32;
memset(&entry->data.ftCreationTime, 0, sizeof(FILETIME));
- time_to_filetime(&st.st_atime, &entry->data.ftLastAccessTime);
- time_to_filetime(&st.st_mtime, &entry->data.ftLastWriteTime);
+ time_to_filetime(st.st_atime, &entry->data.ftLastAccessTime);
+ time_to_filetime(st.st_mtime, &entry->data.ftLastWriteTime);
entry->bhfi.nFileIndexLow = ent->d_ino;
entry->bhfi.nFileIndexHigh = 0;
More information about the wine-cvs
mailing list