Commit 954371ee authored by Ralf Habacker's avatar Ralf Habacker Committed by Simon McVittie

dbus_daemon_publish_session_bus_address: Fix -Wsign-compare issue.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90089Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent 4df63ce8
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment