sync with trunk head (34904)
[reactos.git] / reactos / tools / rbuild / module.cpp
index bac1feb..688a934 100644 (file)
@@ -1262,6 +1262,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;
 }