advapi32: Use correct function pointer cast.

This commit is contained in:
Andrew Talbot 2008-04-29 21:47:41 +01:00 committed by Alexandre Julliard
parent 0de14c37e5
commit 06f05a9a5c
1 changed files with 2 additions and 1 deletions

View File

@ -287,7 +287,8 @@ DWORD WINAPI CommandLineFromMsiDescriptor( WCHAR *szDescriptor,
hmsi = LoadLibraryW( szMsi );
if (!hmsi)
return r;
mpcfd = (void*) GetProcAddress( hmsi, "MsiProvideComponentFromDescriptorW" );
mpcfd = (fnMsiProvideComponentFromDescriptor)GetProcAddress( hmsi,
"MsiProvideComponentFromDescriptorW" );
if (mpcfd)
r = mpcfd( szDescriptor, szCommandLine, pcchCommandLine, NULL );
FreeLibrary( hmsi );