summaryrefslogtreecommitdiff
path: root/TSRM/tsrm_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'TSRM/tsrm_win32.c')
-rw-r--r--TSRM/tsrm_win32.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 958ff80ac3..6bf826e6fa 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -730,10 +730,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;
}