Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 102632
Collapse All | Expand All

(-)src/libsyncevfs.c (-7 / +7 lines)
Lines 289-295 Link Here
289
	g_free(location);
289
	g_free(location);
290
	wstr_free_string(wide_path);
290
	wstr_free_string(wide_path);
291
291
292
	*((HANDLE *)method_handle_return) = handle;
292
	*method_handle_return = (GnomeVFSMethodHandle *)GUINT_TO_POINTER(handle);
293
293
294
	if((handle == INVALID_HANDLE_VALUE) || (synce_open_mode & GENERIC_WRITE))
294
	if((handle == INVALID_HANDLE_VALUE) || (synce_open_mode & GENERIC_WRITE))
295
    result = gnome_vfs_result_from_rapi();
295
    result = gnome_vfs_result_from_rapi();
Lines 373-379 Link Here
373
	g_free(location);
373
	g_free(location);
374
	wstr_free_string(wide_path);
374
	wstr_free_string(wide_path);
375
375
376
	*((HANDLE *)method_handle_return) = handle;
376
	*method_handle_return = (GnomeVFSMethodHandle *)GUINT_TO_POINTER(handle);
377
377
378
	if((handle == INVALID_HANDLE_VALUE) || (synce_open_mode & GENERIC_WRITE))
378
	if((handle == INVALID_HANDLE_VALUE) || (synce_open_mode & GENERIC_WRITE))
379
    result = gnome_vfs_result_from_rapi();
379
    result = gnome_vfs_result_from_rapi();
Lines 402-408 Link Here
402
  if ((result = initialize_rapi()) != GNOME_VFS_OK)
402
  if ((result = initialize_rapi()) != GNOME_VFS_OK)
403
    return result;
403
    return result;
404
404
405
	handle = (HANDLE) method_handle;
405
	handle = (HANDLE)GPOINTER_TO_UINT(method_handle);
406
406
407
	D("synce_close: CeCloseHandle()\n");
407
	D("synce_close: CeCloseHandle()\n");
408
	MUTEX_LOCK (mutex);
408
	MUTEX_LOCK (mutex);
Lines 430-436 Link Here
430
{
430
{
431
  GnomeVFSResult result;
431
  GnomeVFSResult result;
432
	int success;
432
	int success;
433
	size_t read_return;
433
	uint32_t read_return;
434
	HANDLE handle;
434
	HANDLE handle;
435
	
435
	
436
	D("------------------ synce_read() ---------------------\n");
436
	D("------------------ synce_read() ---------------------\n");
Lines 439-445 Link Here
439
  if ((result = initialize_rapi()) != GNOME_VFS_OK)
439
  if ((result = initialize_rapi()) != GNOME_VFS_OK)
440
    return result;
440
    return result;
441
441
442
	handle = (HANDLE) method_handle;
442
	handle = (HANDLE)GPOINTER_TO_UINT(method_handle);
443
443
444
	D("CeReadFile\n");
444
	D("CeReadFile\n");
445
	MUTEX_LOCK (mutex);
445
	MUTEX_LOCK (mutex);
Lines 483-496 Link Here
483
  GnomeVFSResult result;
483
  GnomeVFSResult result;
484
	int success;
484
	int success;
485
	HANDLE handle;
485
	HANDLE handle;
486
	size_t bytes_written;
486
	uint32_t bytes_written;
487
487
488
	D("----------------- synce_write() -------------------\n");
488
	D("----------------- synce_write() -------------------\n");
489
489
490
  if ((result = initialize_rapi()) != GNOME_VFS_OK)
490
  if ((result = initialize_rapi()) != GNOME_VFS_OK)
491
    return result;
491
    return result;
492
492
493
	handle = (HANDLE) method_handle;
493
	handle = (HANDLE)GPOINTER_TO_UINT(method_handle);
494
494
495
	D("CeWriteFile()\n");
495
	D("CeWriteFile()\n");
496
	MUTEX_LOCK (mutex);
496
	MUTEX_LOCK (mutex);

Return to bug 102632