1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00

fix error condition, part of bug #71753

This commit is contained in:
Anatol Belski
2016-03-10 11:35:50 +01:00
parent 67f0770036
commit 8cd903ea68

View File

@@ -127,7 +127,7 @@ PHPAPI int php_flock(int fd, int operation)
{0, 0, 0, 0, NULL};
DWORD err;
if (hdl < 0) {
if (INVALID_HANDLE_VALUE == hdl) {
_set_errno(EBADF);
return -1; /* error in file descriptor */
}