com php-src: map ell the err code: TSRM/tsrm_win32.c
| From: | Anatol Belski | Date: | Thu, 18 Aug 2016 13:28:15 +0000 |
| Subject: | com php-src: map ell the err code: TSRM/tsrm_win32.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-93969@lists.php.net to get a copy of this message | ||
Commit: 20aae1caa3c4301d0055f8e40729e57384ae2cea
Author: Anatol Belski <ab@php.net> Thu, 18 Aug 2016 15:26:24 +0200
Parents: b81a073b856b6f12025013361e2567a82f9b99d0
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=20aae1caa3c4301d0055f8e40729e57384ae2cea
Log:
map ell the err code
Changed paths:
M TSRM/tsrm_win32.c
Diff:
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index c080f17..fc5e58f 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;
}