Chromium Code Reviews| Index: base/test_file_util_win.cc |
| =================================================================== |
| --- base/test_file_util_win.cc (revision 6164) |
| +++ base/test_file_util_win.cc (working copy) |
| @@ -84,6 +84,7 @@ |
| // The size of the file isn't a multiple of the page size, so we'll have |
| // to open the file again, this time without the FILE_FLAG_NO_BUFFERING |
| // flag and use SetEndOfFile to mark EOF. |
| + file_handle.Set(NULL); |
| file_handle.Set(CreateFile(file, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, |
|
darin (slow to review)
2008/12/08 18:18:44
maybe the smart pointer class should be made smart
tommi (sloooow) - chröme
2008/12/09 10:07:45
in this case I think it was just the engineer that
|
| 0, NULL)); |
| CHECK(SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN) != |