From: Jeffrey Altman Date: Thu, 26 Feb 2009 17:47:44 +0000 (+0000) Subject: DEVEL15-windows-tests-torture-20090226 X-Git-Tag: openafs-devel-1_5_58~128 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=61e13ffbfee4c46383659ac1199ebec5fb63da8e;p=packages%2Fo%2Fopenafs.git DEVEL15-windows-tests-torture-20090226 LICENSE MIT create a file of the specified size (cherry picked from commit ab0691760f4cdd2fe8bded4700d051ea1ba51856) --- diff --git a/src/WINNT/tests/torture/Source/nbio.c b/src/WINNT/tests/torture/Source/nbio.c index a77313210..b00cac173 100644 --- a/src/WINNT/tests/torture/Source/nbio.c +++ b/src/WINNT/tests/torture/Source/nbio.c @@ -312,7 +312,7 @@ int nb_CreateFile(char *path, DWORD size) } EndFirstTimer(CMD_CREATEFILE, 1); Moved = SetFilePointer(fHandle, - size - sizeof(buffer) <= 0 ? 0 : size - sizeof(buffer), + size - sizeof(Buffer) <= 0 ? 0 : size - sizeof(Buffer), NULL, FILE_BEGIN); memset(Buffer, 'A', sizeof(Buffer));