Author: hpoussin
Date: Thu Jun 15 16:54:31 2006
New Revision: 22359
URL:
http://svn.reactos.ru/svn/reactos?rev=22359&view=rev
Log:
Cast size_t to long, before applying the unary - operator
Modified:
trunk/reactos/lib/recyclebin/recyclebin_v5.c
Modified: trunk/reactos/lib/recyclebin/recyclebin_v5.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/lib/recyclebin/recyclebin_v…
==============================================================================
--- trunk/reactos/lib/recyclebin/recyclebin_v5.c (original)
+++ trunk/reactos/lib/recyclebin/recyclebin_v5.c Thu Jun 15 16:54:31 2006
@@ -340,7 +340,7 @@
/* Update INFO2 */
/* 1) If not last entry, copy last entry to the current one */
- if (SetFilePointer(bin->hInfo, -sizeof(DELETED_FILE_RECORD), NULL, FILE_END) ==
INVALID_SET_FILE_POINTER)
+ if (SetFilePointer(bin->hInfo, -(LONG)sizeof(DELETED_FILE_RECORD), NULL, FILE_END) ==
INVALID_SET_FILE_POINTER)
goto cleanup;
if (!ReadFile(bin->hInfo, &LastFile, sizeof(DELETED_FILE_RECORD), &bytesRead,
NULL))
goto cleanup;
@@ -374,7 +374,7 @@
goto cleanup;
}
/* 3) Truncate file */
- if (SetFilePointer(bin->hInfo, -sizeof(DELETED_FILE_RECORD), NULL, FILE_END) ==
INVALID_SET_FILE_POINTER)
+ if (SetFilePointer(bin->hInfo, -(LONG)sizeof(DELETED_FILE_RECORD), NULL, FILE_END) ==
INVALID_SET_FILE_POINTER)
goto cleanup;
if (!SetEndOfFile(bin->hInfo))
goto cleanup;