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
This commit is contained in:
Viktor Tarasov 2012-05-30 10:05:37 +02:00
parent aca314b1f8
commit fe80ffdbd2

View File

@ -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;