com php-src: use correct function to close handles: TSRM/tsrm_win32.c

From: Date: Mon, 05 Oct 2015 19:59:22 +0000
Subject: com php-src: use correct function to close handles: TSRM/tsrm_win32.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89300@lists.php.net to get a copy of this message
Commit: 3331d870aabe314ce8e7da6c5feb8f7566e34763 Author: Anatol Belski <ab@php.net> Sun, 4 Oct 2015 22:14:47 +0200 Parents: 0fbd3e5fe7c2df5f8eb8cf2f217902f80a9fd894 Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3331d870aabe314ce8e7da6c5feb8f7566e34763 Log: use correct function to close handles Changed paths: M TSRM/tsrm_win32.c Diff: diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index 98ed806..5b8b64a 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -622,8 +622,8 @@ TSRM_API int shmget(int key, int size, int flags) shm = shm_get(key, NULL); if (!shm) { - UnmapViewOfFile(shm_handle); - UnmapViewOfFile(info_handle); + CloseHandle(shm_handle); + CloseHandle(info_handle); return -1; } shm->segment = shm_handle;

« previous php.cvs (#89300) next »