mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Print a warning when DllRegisterServer and similar functions are not
marked private.
This commit is contained in:
parent
fa70d5c0d0
commit
d78ee14b93
1 changed files with 11 additions and 0 deletions
|
@ -513,6 +513,17 @@ static int parse_spec_ordinal( int ordinal, DLLSPEC *spec )
|
||||||
odp->ordinal = ordinal;
|
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 (!strcmp( odp->name, "@" ) || odp->flags & FLAG_NONAME)
|
||||||
{
|
{
|
||||||
if (ordinal == -1)
|
if (ordinal == -1)
|
||||||
|
|
Loading…
Reference in a new issue