mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
map ell the err code
This commit is contained in:
@@ -729,10 +729,7 @@ TSRM_API void *shmat(int key, const void *shmaddr, int flags)
|
||||
|
||||
err = GetLastError();
|
||||
if (err) {
|
||||
/* Catch more errors */
|
||||
if (ERROR_NOT_ENOUGH_MEMORY == err) {
|
||||
_set_errno(ENOMEM);
|
||||
}
|
||||
SET_ERRNO_FROM_WIN32_CODE(err);
|
||||
return (void*)-1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user