Commit c0e85b9f authored by Alexandre Julliard's avatar Alexandre Julliard

winefile: Pass a value instead of a pointer to avoid type mismatch warnings.

parent 34ff5657
...@@ -465,9 +465,9 @@ static Entry* read_tree_win(Root* root, LPCWSTR path, SORT_ORDER sortOrder, HWND ...@@ -465,9 +465,9 @@ static Entry* read_tree_win(Root* root, LPCWSTR path, SORT_ORDER sortOrder, HWND
#ifdef __WINE__ #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; SYSTEMTIME stime;
if (!tm) if (!tm)
...@@ -534,8 +534,8 @@ static void read_directory_unix(Entry* dir, LPCWSTR path) ...@@ -534,8 +534,8 @@ static void read_directory_unix(Entry* dir, LPCWSTR path)
entry->data.nFileSizeHigh = st.st_size >> 32; entry->data.nFileSizeHigh = st.st_size >> 32;
memset(&entry->data.ftCreationTime, 0, sizeof(FILETIME)); memset(&entry->data.ftCreationTime, 0, sizeof(FILETIME));
time_to_filetime(&st.st_atime, &entry->data.ftLastAccessTime); time_to_filetime(st.st_atime, &entry->data.ftLastAccessTime);
time_to_filetime(&st.st_mtime, &entry->data.ftLastWriteTime); time_to_filetime(st.st_mtime, &entry->data.ftLastWriteTime);
entry->bhfi.nFileIndexLow = ent->d_ino; entry->bhfi.nFileIndexLow = ent->d_ino;
entry->bhfi.nFileIndexHigh = 0; entry->bhfi.nFileIndexHigh = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment