[Libreoffice-commits] core.git: cli_ure/source

ComputingDwarf Rechenelf at googlemail.com
Wed Mar 22 10:21:39 UTC 2017


 cli_ure/source/uno_bridge/cli_bridge.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 3b2863596f26a8d32a5bc322bbbf51cad403c9fb
Author: ComputingDwarf <Rechenelf at googlemail.com>
Date:   Sun Mar 12 17:38:59 2017 +0100

    tdf#94265: Correct the error
    
    Always _WIN32 is defined, even in Win64. So the check must be to _WIN64 and then to _WIN32.
    Hope no more lines like this in code.
    Can you test programs with SDK 64 Bit?

diff --git a/cli_ure/source/uno_bridge/cli_bridge.cxx b/cli_ure/source/uno_bridge/cli_bridge.cxx
index 3fb8f98f6dfc..da8d0852e927 100644
--- a/cli_ure/source/uno_bridge/cli_bridge.cxx
+++ b/cli_ure/source/uno_bridge/cli_bridge.cxx
@@ -131,9 +131,10 @@ void SAL_CALL Mapping_uno2cli(
             if(cliI)
             {
                 ptr= sri::GCHandle::ToIntPtr(sri::GCHandle::Alloc(cliI))
-#ifdef _WIN32
+#ifdef _WIN64
+                    .ToInt64();
+#else /* defined(_WIN32) */
                     .ToInt32();
-#else /* defined(_WIN64) */                 .ToInt64();
 #endif
             }
             (*ppOut)= reinterpret_cast<void*>(ptr);


More information about the Libreoffice-commits mailing list