This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e5f57d
)
typo in change#4892
author
Gurusamy Sarathy
<gsar@cpan.org>
Tue, 25 Jan 2000 23:19:18 +0000
(23:19 +0000)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Tue, 25 Jan 2000 23:19:18 +0000
(23:19 +0000)
p4raw-link: @4892 on //depot/perl:
9e5f57defb0d4fe4a23e6e24c3d57478465aea87
p4raw-id: //depot/perl@4893
win32/win32.c
patch
|
blob
|
blame
|
history
diff --git
a/win32/win32.c
b/win32/win32.c
index
49a8dee
..
c762115
100644
(file)
--- 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 */
- LeaveCriti
i
calSection(&_pioinfo(fh)->lock);
+ LeaveCriticalSection(&_pioinfo(fh)->lock);
return fh; /* return handle */
}