From e29d9e6dbc1f2ffa36f621e455440960fb5f8f50 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 13 May 2015 20:17:05 +0200 Subject: [PATCH] dbus_daemon_publish_session_bus_address: Fix -Wsign-compare issue. https://bugs.freedesktop.org/show_bug.cgi?id=90089 --- dbus/dbus-sysdeps-win.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 1ecea49..143470a 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2960,8 +2960,11 @@ _dbus_daemon_publish_session_bus_address (const char* address, const char *scope } // create shm + dbus_uint64_t len = strlen( address ) + 1; + hDBusSharedMem = CreateFileMappingA( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, - 0, strlen( address ) + 1, _dbus_string_get_const_data(&shm_name) ); + len >> 32, len & 0xffffffffu, + _dbus_string_get_const_data(&shm_name) ); _dbus_assert( hDBusSharedMem ); shared_addr = MapViewOfFile( hDBusSharedMem, FILE_MAP_WRITE, 0, 0, 0 ); -- 1.8.4.5