Added a warning for DllGetVersion and DllInstall not being declared

private. Also warn when one of the Dll* functions is using a different
internal name.
oldstable
Alexandre Julliard 2005-08-09 10:24:05 +00:00
parent 4ffc11ad0e
commit d5d8967f69
1 changed files with 5 additions and 0 deletions

View File

@ -522,9 +522,14 @@ static int parse_spec_ordinal( int ordinal, DLLSPEC *spec )
if (!strcmp( odp->name, "DllRegisterServer" ) ||
!strcmp( odp->name, "DllUnregisterServer" ) ||
!strcmp( odp->name, "DllGetClassObject" ) ||
!strcmp( odp->name, "DllGetVersion" ) ||
!strcmp( odp->name, "DllInstall" ) ||
!strcmp( odp->name, "DllCanUnloadNow" ))
{
warning( "Function %s should be marked private\n", odp->name );
if (strcmp( odp->name, odp->link_name ))
warning( "Function %s should not use a different internal name (%s)\n",
odp->name, odp->link_name );
}
}