1
0
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:
Anatol Belski
2016-08-18 15:26:24 +02:00
parent b81a073b85
commit 20aae1caa3

View File

@@ -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;
}