Commit 7f0cfac5 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

msi/tests: Get rid of unneeded function typedefs.

parent 6af6f025
...@@ -453,11 +453,9 @@ static void test_msiinsert(void) ...@@ -453,11 +453,9 @@ static void test_msiinsert(void)
ok(r == TRUE, "file didn't exist after commit\n"); ok(r == TRUE, "file didn't exist after commit\n");
} }
typedef UINT (WINAPI *fnMsiDecomposeDescriptorA)(LPCSTR, LPCSTR, LPSTR, LPSTR, DWORD *);
static fnMsiDecomposeDescriptorA pMsiDecomposeDescriptorA;
static void test_msidecomposedesc(void) static void test_msidecomposedesc(void)
{ {
UINT (WINAPI *pMsiDecomposeDescriptorA)(LPCSTR, LPCSTR, LPSTR, LPSTR, DWORD *);
char prod[MAX_FEATURE_CHARS+1], comp[MAX_FEATURE_CHARS+1], feature[MAX_FEATURE_CHARS+1]; char prod[MAX_FEATURE_CHARS+1], comp[MAX_FEATURE_CHARS+1], feature[MAX_FEATURE_CHARS+1];
const char *desc; const char *desc;
UINT r; UINT r;
...@@ -465,8 +463,7 @@ static void test_msidecomposedesc(void) ...@@ -465,8 +463,7 @@ static void test_msidecomposedesc(void)
HMODULE hmod; HMODULE hmod;
hmod = GetModuleHandle("msi.dll"); hmod = GetModuleHandle("msi.dll");
pMsiDecomposeDescriptorA = (fnMsiDecomposeDescriptorA) pMsiDecomposeDescriptorA = (void*)GetProcAddress(hmod, "MsiDecomposeDescriptorA");
GetProcAddress(hmod, "MsiDecomposeDescriptorA");
if (!pMsiDecomposeDescriptorA) if (!pMsiDecomposeDescriptorA)
return; return;
......
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