mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 04:38:07 +02:00
dbus_daemon_publish_session_bus_address: Fix -Wsign-compare issue.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90089 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
4df63ce80b
commit
954371eea2
1 changed files with 4 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue