[RBUILD]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 3 Jun 2010 14:49:47 +0000 (14:49 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 3 Jun 2010 14:49:47 +0000 (14:49 +0000)
- append stdcall decoration only for i386 target

svn path=/trunk/; revision=47539

reactos/tools/rbuild/module.cpp

index d1c3138..95af1d0 100644 (file)
@@ -1113,23 +1113,23 @@ Module::GetDefaultModuleEntrypoint () const
        switch ( type )
        {
                case Kernel:
-                       if (Environment::GetArch() == "arm") return "KiSystemStartup";
-            return "KiSystemStartup@4";
+                       if (Environment::GetArch() == "i386") return "KiSystemStartup@4";
+            return "KiSystemStartup";
                case KeyboardLayout:
                case KernelModeDLL:
                case KernelModeDriver:
-            if (Environment::GetArch() == "arm") return "DriverEntry";
-                       return "DriverEntry@8";
+            if (Environment::GetArch() == "i386") return "DriverEntry@8";
+                       return "DriverEntry";
                case NativeDLL:
-            if (Environment::GetArch() == "arm") return "DllMainCRTStartup";
-            return "DllMainCRTStartup@12";
+            if (Environment::GetArch() == "i386") return "DllMainCRTStartup@12";
+            return "DllMainCRTStartup";
                case NativeCUI:
-            if (Environment::GetArch() == "arm") return "NtProcessStartup";
-            return "NtProcessStartup@4";
+            if (Environment::GetArch() == "i386") return "NtProcessStartup@4";
+            return "NtProcessStartup";
                case Win32DLL:
                case Win32OCX:
-            if (Environment::GetArch() == "arm") return "DllMain";
-                       return "DllMain@12";
+            if (Environment::GetArch() == "i386") return "DllMain@12";
+                       return "DllMain";
                case Win32CUI:
                case Test:
                        return "mainCRTStartup";