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:
@@ -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 */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user