From 1f759dcf5588b6ce8570273d53ee70bc83b077ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Wed, 24 Nov 2004 20:11:52 +0000 Subject: [PATCH] If stub name is of the form function@0, output as function@0@0 in the .def file because the last @0 will be stripped later on svn path=/trunk/; revision=11799 --- reactos/tools/winebuild/spec32.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/reactos/tools/winebuild/spec32.c b/reactos/tools/winebuild/spec32.c index 15d5a163f0d..a402c3efd54 100644 --- a/reactos/tools/winebuild/spec32.c +++ b/reactos/tools/winebuild/spec32.c @@ -886,6 +886,20 @@ void BuildDef32File( FILE *outfile, DLLSPEC *spec ) } case TYPE_STUB: { + if (!kill_at) + { + const char *check = name + strlen(name); + while (name != check && + '0' <= check[-1] && check[-1] <= '9') + { + check--; + } + if (name != check && check != name + strlen(name) && + '@' == check[-1]) + { + fprintf(outfile, "%s", check - 1); + } + } if (NULL != odp->name) { fprintf(outfile, "=%s", make_internal_name( odp, spec, "stub" ));