From 39498209445f361373afe783adee37dc30daa682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Thu, 15 Jun 2006 12:54:31 +0000 Subject: [PATCH] Cast size_t to long, before applying the unary - operator svn path=/trunk/; revision=22359 --- reactos/lib/recyclebin/recyclebin_v5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/recyclebin/recyclebin_v5.c b/reactos/lib/recyclebin/recyclebin_v5.c index 866290e2119..fff0b0099c3 100644 --- a/reactos/lib/recyclebin/recyclebin_v5.c +++ b/reactos/lib/recyclebin/recyclebin_v5.c @@ -340,7 +340,7 @@ RestoreFile5( /* 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 @@ RestoreFile5( 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;