X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Ffilesystem%2Fhuge_file.cpp;h=ae8382950965b9232c1a2150add1fd5c55070a1b;hb=f5d845d81352418af0785b85412a35888c82486f;hp=21158ca45bb03cbee8aef01ccef60fd2df34cc86;hpb=3c83f778aaea475cc3c68d0bab7b63e8427ced1b;p=feisty_meow.git diff --git a/nucleus/library/filesystem/huge_file.cpp b/nucleus/library/filesystem/huge_file.cpp index 21158ca4..ae838295 100644 --- a/nucleus/library/filesystem/huge_file.cpp +++ b/nucleus/library/filesystem/huge_file.cpp @@ -289,14 +289,14 @@ basis::outcome huge_file::touch() if (filename(_real_file->name()).exists()) { // file exists, so just update time. #ifndef __WIN32__ - int ret = utimes(_real_file->name().observe(), NIL); + int ret = utimes(_real_file->name().observe(), NULL_POINTER); if (ret != 0) return FAILURE; #else // open the file, although the function says create in its name... HANDLE f = CreateFile(_real_file->name().observe(), GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, - NIL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NIL); + NULL_POINTER, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL_POINTER); if (!f) { LOG(a_sprintf("failed to open file %s", _real_file->name().observe())); return FAILURE; @@ -308,7 +308,7 @@ basis::outcome huge_file::touch() FILETIME *t = new FILETIME; SystemTimeToFileTime(st, t); // set the file's time. - SetFileTime(f, NIL, t, t); + SetFileTime(f, NULL_POINTER, t, t); #endif } else { // file doesn't exist yet.