Author: sserapion Date: Fri Jul 25 07:05:01 2008 New Revision: 34772
URL: http://svn.reactos.org/svn/reactos?rev=34772&view=rev Log: Make calling spec file stubs a non-fatal event.
Modified: branches/ros-amd64-bringup/reactos/tools/winebuild/spec32.c
Modified: branches/ros-amd64-bringup/reactos/tools/winebuild/spec32.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/tools/... ============================================================================== --- branches/ros-amd64-bringup/reactos/tools/winebuild/spec32.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/tools/winebuild/spec32.c [iso-8859-1] Fri Jul 25 07:05:01 2008 @@ -668,20 +668,16 @@ return; }
- output( "#include <stdarg.h>\n"); - output( "#include "windef.h"\n"); - output( "#include "winbase.h"\n"); - output( "#include "wine/config.h"\n"); - output( "#include "wine/exception.h"\n\n"); - - output( "void __wine_spec_unimplemented_stub( const char *module, const char *function )\n"); + output( "#include <windows.h>\n"); + output( "#include <reactos/debug.h>\n"); + + output( "DWORD __wine_spec_unimplemented_stub( const char *module, const char *function )\n"); output( "{\n"); - output( " ULONG_PTR args[2];\n"); + output( " DPRINT1("%%s hit stub for %%s\n",module,function);"); output( "\n"); - output( " args[0] = (ULONG_PTR)module;\n"); - output( " args[1] = (ULONG_PTR)function;\n"); - output( " RaiseException( EXCEPTION_WINE_STUB, EH_NONCONTINUABLE, 2, args );\n"); - output( "}\n\n"); + output( " SetLastError(ERROR_CALL_NOT_IMPLEMENTED);\n"); + output( " return -1;\n"); + output( "}\n");
output( "static const char __wine_spec_file_name[] = "%s";\n\n", spec->file_name );