From: Gurusamy Sarathy Date: Tue, 25 Jan 2000 23:19:18 +0000 (+0000) Subject: typo in change#4892 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd8f48188875f1fb1984b3860e80a9093ac4cab2;p=p5sagit%2Fp5-mst-13.2.git typo in change#4892 p4raw-link: @4892 on //depot/perl: 9e5f57defb0d4fe4a23e6e24c3d57478465aea87 p4raw-id: //depot/perl@4893 --- diff --git a/win32/win32.c b/win32/win32.c index 49a8dee..c762115 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -1840,7 +1840,7 @@ EXTERN_C _CRTIMP ioinfo* __pioinfo[]; static int _alloc_osfhnd() { HANDLE hF = CreateFile("NUL", 0, 0, NULL, OPEN_ALWAYS, 0, NULL); - int fh = _open_osfhandle(hF, 0); + int fh = _open_osfhandle((long)hF, 0); CloseHandle(hF); if (fh == -1) return fh; @@ -1876,7 +1876,7 @@ my_open_osfhandle(long osfhandle, int flags) fileflags |= FOPEN; /* mark as open */ _osfile(fh) = fileflags; /* set osfile entry */ - LeaveCritiicalSection(&_pioinfo(fh)->lock); + LeaveCriticalSection(&_pioinfo(fh)->lock); return fh; /* return handle */ }