msi/tests: Get rid of unneeded function typedefs.
Francois Gouget
fgouget at free.fr
Fri Jun 15 08:20:09 CDT 2012
Also avoid using global variables if not needed.
---
dlls/msi/tests/db.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/msi/tests/db.c b/dlls/msi/tests/db.c
index 8b62c39..107502f 100644
--- a/dlls/msi/tests/db.c
+++ b/dlls/msi/tests/db.c
@@ -453,11 +453,9 @@ static void test_msiinsert(void)
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)
{
+ UINT (WINAPI *pMsiDecomposeDescriptorA)(LPCSTR, LPCSTR, LPSTR, LPSTR, DWORD *);
char prod[MAX_FEATURE_CHARS+1], comp[MAX_FEATURE_CHARS+1], feature[MAX_FEATURE_CHARS+1];
const char *desc;
UINT r;
@@ -465,8 +463,7 @@ static void test_msidecomposedesc(void)
HMODULE hmod;
hmod = GetModuleHandle("msi.dll");
- pMsiDecomposeDescriptorA = (fnMsiDecomposeDescriptorA)
- GetProcAddress(hmod, "MsiDecomposeDescriptorA");
+ pMsiDecomposeDescriptorA = (void*)GetProcAddress(hmod, "MsiDecomposeDescriptorA");
if (!pMsiDecomposeDescriptorA)
return;
--
1.7.10
More information about the wine-patches
mailing list