From af63b172fe5f070f9fd9794e7d7b718e4ed9b256 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 24 Jul 2008 13:32:59 +0000 Subject: [PATCH] strip off stdcall decoration from amd64 entry points svn path=/branches/ros-amd64-bringup/; revision=34740 --- reactos/tools/rbuild/module.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/tools/rbuild/module.cpp b/reactos/tools/rbuild/module.cpp index 6e1947d1485..3097a23a1e6 100644 --- a/reactos/tools/rbuild/module.cpp +++ b/reactos/tools/rbuild/module.cpp @@ -1316,6 +1316,14 @@ Module::GetEntryPoint(bool leadingUnderscore) const result = "_"; result += entrypoint; + + if (Environment::GetArch() == "amd64") + { + size_t at_index = result.find_last_of( '@' ); + if ( at_index != result.npos ) + return result.substr (0, at_index ); + } + return result; }