mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
Print a warning when DllRegisterServer and similar functions are not
marked private.
This commit is contained in:
parent
fa70d5c0d0
commit
d78ee14b93
@ -513,6 +513,17 @@ static int parse_spec_ordinal( int ordinal, DLLSPEC *spec )
|
||||
odp->ordinal = ordinal;
|
||||
}
|
||||
|
||||
if (odp->type == TYPE_STDCALL && !(odp->flags & FLAG_PRIVATE))
|
||||
{
|
||||
if (!strcmp( odp->name, "DllRegisterServer" ) ||
|
||||
!strcmp( odp->name, "DllUnregisterServer" ) ||
|
||||
!strcmp( odp->name, "DllGetClassObject" ) ||
|
||||
!strcmp( odp->name, "DllCanUnloadNow" ))
|
||||
{
|
||||
warning( "Function %s should be marked private\n", odp->name );
|
||||
}
|
||||
}
|
||||
|
||||
if (!strcmp( odp->name, "@" ) || odp->flags & FLAG_NONAME)
|
||||
{
|
||||
if (ordinal == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user