/[winpt]/trunk/PTD/wptWipeFile.cpp
ViewVC logotype

Diff of /trunk/PTD/wptWipeFile.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by twoaday, Mon Jan 31 11:02:21 2005 UTC revision 5 by twoaday, Mon Mar 7 13:21:36 2005 UTC
# Line 225  _secure_unlink (const char * path, int m Line 225  _secure_unlink (const char * path, int m
225      ctx.filesize = GetFileSize64 (path);      ctx.filesize = GetFileSize64 (path);
226      if (!ctx.filesize) {      if (!ctx.filesize) {
227          free_if_alloc (ctx.buffer);          free_if_alloc (ctx.buffer);
228          return WPTERR_FILE_ZERO;          unlink (path);
229            return 0;
230      }      }
231    
232      ctx.fd = CreateFile (path, GENERIC_WRITE, FILE_SHARE_WRITE, NULL,      ctx.fd = CreateFile (path, GENERIC_WRITE, FILE_SHARE_WRITE, NULL,
# Line 376  wipe_freespace (const char * drive, HAND Line 377  wipe_freespace (const char * drive, HAND
377          return -1;          return -1;
378      handle_lowdiskspace_notify (drive, 1);      handle_lowdiskspace_notify (drive, 1);
379    
380        /* disk is full */
381      if (!frees.LowPart)      if (!frees.LowPart)
382          return WPTERR_FILE_ZERO;          return 0;
383      file = new char[strlen (drive)+8];      file = new char[strlen (drive)+8];
384      if (!file)      if (!file)
385          BUG (0);          BUG (0);

Legend:
Removed from v.2  
changed lines
  Added in v.5

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26