From fe80ffdbd2dbb5444f2937f8df8811d98ec7e3e2 Mon Sep 17 00:00:00 2001 From: Viktor Tarasov Date: Wed, 30 May 2012 10:05:37 +0200 Subject: [PATCH] pkcs11-spy: invalid ExpandEnvironmentStrings() call parameter pkcs11-spy.c(168) : warning C4047: 'function' : 'DWORD' differs in levels of indirection from 'DWORD *' pkcs11-spy.c(168) : warning C4024: 'ExpandEnvironmentStringsA' : different types for formal and actual parameter 3 pkcs11-spy.c(205) : warning C4047: 'function' : 'DWORD' differs in levels of indirection from 'DWORD *' pkcs11-spy.c(205) : warning C4024: 'ExpandEnvironmentStringsA' : different types for formal and actual parameter 3 --- src/pkcs11/pkcs11-spy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkcs11/pkcs11-spy.c b/src/pkcs11/pkcs11-spy.c index 215e4eb3..8fb08bef 100644 --- a/src/pkcs11/pkcs11-spy.c +++ b/src/pkcs11/pkcs11-spy.c @@ -165,7 +165,7 @@ init_spy(void) rc = RegQueryValueEx( hKey, "Output", NULL, NULL, (LPBYTE) temp_path, &temp_len); if (rc == ERROR_SUCCESS) { expanded_len = PATH_MAX; - expanded_len = ExpandEnvironmentStrings(temp_path, expanded_path, &expanded_len); + expanded_len = ExpandEnvironmentStrings(temp_path, expanded_path, expanded_len); if (expanded_len > 0) { memcpy(temp_path, expanded_path, PATH_MAX); temp_len = expanded_len; @@ -202,7 +202,7 @@ init_spy(void) rc = RegQueryValueEx( hKey, "Module", NULL, NULL, (LPBYTE) temp_path, &temp_len); if (rc == ERROR_SUCCESS) { expanded_len = PATH_MAX; - expanded_len = ExpandEnvironmentStrings(temp_path, expanded_path, &expanded_len); + expanded_len = ExpandEnvironmentStrings(temp_path, expanded_path, expanded_len); if (expanded_len > 0) { memcpy(temp_path, expanded_path, PATH_MAX); temp_len = expanded_len;