Commit 5faa3d0a authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

crypt32/tests: No need to check return value of GetModuleHandle.

parent b4c33d5f
...@@ -441,21 +441,18 @@ START_TEST(base64) ...@@ -441,21 +441,18 @@ START_TEST(base64)
{ {
HMODULE lib = GetModuleHandleA("crypt32"); HMODULE lib = GetModuleHandleA("crypt32");
if (lib) pCryptBinaryToStringA = (CryptBinaryToStringAFunc)GetProcAddress(lib,
{ "CryptBinaryToStringA");
pCryptBinaryToStringA = (CryptBinaryToStringAFunc)GetProcAddress(lib, pCryptStringToBinaryA = (CryptStringToBinaryAFunc)GetProcAddress(lib,
"CryptBinaryToStringA"); "CryptStringToBinaryA");
pCryptStringToBinaryA = (CryptStringToBinaryAFunc)GetProcAddress(lib,
"CryptStringToBinaryA");
if (pCryptBinaryToStringA) if (pCryptBinaryToStringA)
testBinaryToStringA(); testBinaryToStringA();
else else
skip("CryptBinaryToStringA is not available\n"); skip("CryptBinaryToStringA is not available\n");
if (pCryptStringToBinaryA) if (pCryptStringToBinaryA)
testStringToBinaryA(); testStringToBinaryA();
else else
skip("CryptStringToBinaryA is not available\n"); skip("CryptStringToBinaryA is not available\n");
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment