Diff for /embedaddon/php/win32/winutil.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:48:06 version 1.1.1.2, 2012/05/29 12:34:34
Line 22 Line 22
 #include "php.h"  #include "php.h"
 #include <wincrypt.h>  #include <wincrypt.h>
   
PHPAPI char *php_win_err(int error)PHPAPI char *php_win32_error_to_msg(int error)
 {  {
         char *buf = NULL;          char *buf = NULL;
   
Line 62  void php_win32_init_rng_lock() Line 62  void php_win32_init_rng_lock()
 void php_win32_free_rng_lock()  void php_win32_free_rng_lock()
 {  {
         tsrm_mutex_lock(php_lock_win32_cryptoctx);          tsrm_mutex_lock(php_lock_win32_cryptoctx);
        CryptReleaseContext(hCryptProv, 0);        if (has_crypto_ctx == 1) {
        has_crypto_ctx = 0;                CryptReleaseContext(hCryptProv, 0);
                 has_crypto_ctx = 0;
         }
         tsrm_mutex_unlock(php_lock_win32_cryptoctx);          tsrm_mutex_unlock(php_lock_win32_cryptoctx);
         tsrm_mutex_free(php_lock_win32_cryptoctx);          tsrm_mutex_free(php_lock_win32_cryptoctx);
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>