@@ -138,13 +138,13 @@ GIT_INLINE(int) cng_provider_init(void)
138138 }
139139
140140 /* Load the function addresses */
141- if ((hash_provider .provider .cng .open_algorithm_provider = (cng_open_algorithm_provider_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptOpenAlgorithmProvider" )) == NULL ||
142- (hash_provider .provider .cng .get_property = (cng_get_property_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptGetProperty" )) == NULL ||
143- (hash_provider .provider .cng .create_hash = (cng_create_hash_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptCreateHash" )) == NULL ||
144- (hash_provider .provider .cng .finish_hash = (cng_finish_hash_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptFinishHash" )) == NULL ||
145- (hash_provider .provider .cng .hash_data = (cng_hash_data_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptHashData" )) == NULL ||
146- (hash_provider .provider .cng .destroy_hash = (cng_destroy_hash_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptDestroyHash" )) == NULL ||
147- (hash_provider .provider .cng .close_algorithm_provider = (cng_close_algorithm_provider_fn )GetProcAddress (hash_provider .provider .cng .dll , "BCryptCloseAlgorithmProvider" )) == NULL ) {
141+ if ((hash_provider .provider .cng .open_algorithm_provider = (cng_open_algorithm_provider_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptOpenAlgorithmProvider" ) )) == NULL ||
142+ (hash_provider .provider .cng .get_property = (cng_get_property_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptGetProperty" ) )) == NULL ||
143+ (hash_provider .provider .cng .create_hash = (cng_create_hash_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptCreateHash" ) )) == NULL ||
144+ (hash_provider .provider .cng .finish_hash = (cng_finish_hash_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptFinishHash" ) )) == NULL ||
145+ (hash_provider .provider .cng .hash_data = (cng_hash_data_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptHashData" ) )) == NULL ||
146+ (hash_provider .provider .cng .destroy_hash = (cng_destroy_hash_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptDestroyHash" ) )) == NULL ||
147+ (hash_provider .provider .cng .close_algorithm_provider = (cng_close_algorithm_provider_fn )(( void * ) GetProcAddress (hash_provider .provider .cng .dll , "BCryptCloseAlgorithmProvider" ) )) == NULL ) {
148148 FreeLibrary (hash_provider .provider .cng .dll );
149149
150150 git_error_set (GIT_ERROR_OS , "CryptoNG functions could not be loaded" );
0 commit comments