--- src/libsyncevfs.c 2004-08-22 20:06:29.000000000 +0100 +++ src/libsyncevfs.c 2005-08-15 17:35:21.000000000 +0100 @@ -289,7 +289,7 @@ g_free(location); wstr_free_string(wide_path); - *((HANDLE *)method_handle_return) = handle; + *method_handle_return = (GnomeVFSMethodHandle *)GUINT_TO_POINTER(handle); if((handle == INVALID_HANDLE_VALUE) || (synce_open_mode & GENERIC_WRITE)) result = gnome_vfs_result_from_rapi(); @@ -373,7 +373,7 @@ g_free(location); wstr_free_string(wide_path); - *((HANDLE *)method_handle_return) = handle; + *method_handle_return = (GnomeVFSMethodHandle *)GUINT_TO_POINTER(handle); if((handle == INVALID_HANDLE_VALUE) || (synce_open_mode & GENERIC_WRITE)) result = gnome_vfs_result_from_rapi(); @@ -402,7 +402,7 @@ if ((result = initialize_rapi()) != GNOME_VFS_OK) return result; - handle = (HANDLE) method_handle; + handle = (HANDLE)GPOINTER_TO_UINT(method_handle); D("synce_close: CeCloseHandle()\n"); MUTEX_LOCK (mutex); @@ -430,7 +430,7 @@ { GnomeVFSResult result; int success; - size_t read_return; + uint32_t read_return; HANDLE handle; D("------------------ synce_read() ---------------------\n"); @@ -439,7 +439,7 @@ if ((result = initialize_rapi()) != GNOME_VFS_OK) return result; - handle = (HANDLE) method_handle; + handle = (HANDLE)GPOINTER_TO_UINT(method_handle); D("CeReadFile\n"); MUTEX_LOCK (mutex); @@ -483,14 +483,14 @@ GnomeVFSResult result; int success; HANDLE handle; - size_t bytes_written; + uint32_t bytes_written; D("----------------- synce_write() -------------------\n"); if ((result = initialize_rapi()) != GNOME_VFS_OK) return result; - handle = (HANDLE) method_handle; + handle = (HANDLE)GPOINTER_TO_UINT(method_handle); D("CeWriteFile()\n"); MUTEX_LOCK (mutex);