The init function can be called main.

This commit is contained in:
Francois Gouget 2000-11-27 01:33:55 +00:00 committed by Alexandre Julliard
parent c34fe084d5
commit c87c5e3d22

View file

@ -559,8 +559,6 @@ SPEC_TYPE ParseTopLevel( FILE *file )
fatal_error( "init cannot be used for Win16 spec files\n" );
if (!DLLInitFunc[0])
fatal_error( "Expected function name after init\n" );
if (!strcmp(DLLInitFunc, "main"))
fatal_error( "The init function cannot be named 'main'\n" );
}
else if (strcmp(token, "import") == 0)
{