Merge to trunk HEAD(r36856)
[reactos.git] / reactos / tools / rbuild / module.cpp
index e224743..d710f7c 100644 (file)
@@ -1244,6 +1244,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;
 }