From: Anatol Belski Date: Thu, 18 Aug 2016 13:26:24 +0000 (+0200) Subject: map ell the err code X-Git-Tag: php-7.1.0beta3~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20aae1caa3c4301d0055f8e40729e57384ae2cea;p=php map ell the err code --- diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index c080f17a7c..fc5e58f2f4 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -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; }