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, |
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); |