X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fio%2Fwindows%2Fhandle.cpp;fp=source%2Fio%2Fwindows%2Fhandle.cpp;h=6d1219a24859e7757e9b1ba9e114ffbffa3793d7;hb=41363aed34382386f915f17c1a961750b4fdcb14;hp=1cdf8ce208ed881d0d5510bc0efb3a93122640ca;hpb=26a5878092f6547e701fd1a33abbf1878d26ab70;p=libs%2Fcore.git diff --git a/source/io/windows/handle.cpp b/source/io/windows/handle.cpp index 1cdf8ce..6d1219a 100644 --- a/source/io/windows/handle.cpp +++ b/source/io/windows/handle.cpp @@ -23,7 +23,7 @@ size_t sys_read(Handle &handle, char *buf, size_t size) throw invalid_argument("read"); DWORD ret; - if(ReadFile(*handle, buf, size, &ret, 0)==0) + if(ReadFile(*handle, buf, size, &ret, nullptr)==0) throw system_error("ReadFile"); return ret; @@ -35,7 +35,7 @@ size_t sys_write(Handle &handle, const char *buf, size_t size) throw invalid_argument("write"); DWORD ret; - if(WriteFile(*handle, buf, size, &ret, 0)==0) + if(WriteFile(*handle, buf, size, &ret, nullptr)==0) throw system_error("WriteFile"); return ret;