crypt32: Replace long with a better type.

This commit is contained in:
Michael Stefaniuc 2009-06-03 09:44:55 +02:00 committed by Alexandre Julliard
parent 7faa2cb70e
commit 2b6c4c0be6
2 changed files with 5 additions and 5 deletions

View File

@ -197,7 +197,7 @@ BOOL WINAPI CryptGetDefaultOIDDllList(HCRYPTOIDFUNCSET hFuncSet,
struct OIDFunctionSet *set = hFuncSet;
char *keyName;
HKEY key;
long rc;
LSTATUS rc;
TRACE("(%p, %d, %p, %p)\n", hFuncSet, dwEncodingType, pwszDllList,
pcchDllList);
@ -299,7 +299,7 @@ static BOOL CRYPT_GetFuncFromReg(DWORD dwEncodingType, LPCSTR pszOID,
char *keyName;
const char *funcName;
HKEY key;
long rc;
LSTATUS rc;
keyName = CRYPT_GetKeyName(dwEncodingType, szFuncName, pszOID);
rc = RegOpenKeyExA(HKEY_LOCAL_MACHINE, keyName, 0, KEY_READ, &key);

View File

@ -384,7 +384,7 @@ static void test_registerDefaultOIDFunction(void)
static const char func[] = "CertDllOpenStoreProv";
char buf[MAX_PATH];
BOOL ret;
long rc;
LSTATUS rc;
HKEY key;
ret = CryptRegisterDefaultOIDFunction(0, NULL, 0, NULL);
@ -419,7 +419,7 @@ static void test_registerDefaultOIDFunction(void)
ok(ret, "CryptRegisterDefaultOIDFunction failed: %08x\n", GetLastError());
sprintf(buf, fmt, 0, func);
rc = RegOpenKeyA(HKEY_LOCAL_MACHINE, buf, &key);
ok(rc == 0, "Expected key to exist, RegOpenKeyA failed: %ld\n", rc);
ok(rc == 0, "Expected key to exist, RegOpenKeyA failed: %d\n", rc);
if (rc == 0)
{
static const CHAR dllA[] = "Dll";
@ -432,7 +432,7 @@ static void test_registerDefaultOIDFunction(void)
size = sizeof(dllBuf) / sizeof(dllBuf[0]);
rc = RegQueryValueExA(key, dllA, NULL, &type, (LPBYTE)dllBuf, &size);
ok(rc == 0,
"Expected Dll value to exist, RegQueryValueExA failed: %ld\n", rc);
"Expected Dll value to exist, RegQueryValueExA failed: %d\n", rc);
ok(type == REG_MULTI_SZ, "Expected type REG_MULTI_SZ, got %d\n", type);
/* bogusDll was registered first, so that should be first */
ptr = dllBuf;