cvs: TSRM / tsrm_win32.c

[email protected] ("Pierre-Alain Joye") Mon, 18 May 2009 20:57:24 -0000
Newsgroups php.zend-engine.cvs
Message-ID <cvspajoye1242680244@cvsserver>
pajoye		Mon May 18 20:57:24 2009 UTC

  Modified files:              
    /TSRM	tsrm_win32.c 
  Log:
  - MFB: close manually the impersonation token
  
http://cvs.php.net/viewvc.cgi/TSRM/tsrm_win32.c?r1=1.38&r2=1.39&diff_format=u
Index: TSRM/tsrm_win32.c
diff -u TSRM/tsrm_win32.c:1.38 TSRM/tsrm_win32.c:1.39
--- TSRM/tsrm_win32.c:1.38	Sun May 17 19:49:13 2009
+++ TSRM/tsrm_win32.c	Mon May 18 20:57:24 2009
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: tsrm_win32.c,v 1.38 2009/05/17 19:49:13 pajoye Exp $ */
+/* $Id: tsrm_win32.c,v 1.39 2009/05/18 20:57:24 pajoye Exp $ */
 
 #include <stdio.h>
 #include <fcntl.h>
@@ -68,6 +68,10 @@
 	}
 
 	free(globals->comspec);
+
+	If(globals->impersonation_token) {
+		CloseHandle(globals->impersonation_token);
+	}
 }
 
 TSRM_API void tsrm_win32_startup(void)