Sync to trunk r38250
[reactos.git] / reactos / tools / rbuild / module.cpp
index 6f71b95..b0670e2 100644 (file)
@@ -1323,6 +1323,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;
 }