dbus/dbus dbus-sysdeps-win.c,1.2,1.3

Ralf Habacker rhabacker at kemper.freedesktop.org
Thu Mar 8 05:40:18 PST 2007


Update of /cvs/dbus/dbus/dbus
In directory kemper:/tmp/cvs-serv18782/dbus

Modified Files:
	dbus-sysdeps-win.c 
Log Message:
* dbus-win.patch: dbus-connection.c (dbus_connection_get_unix_user,
dbus_connection_get_unix_process_id): Let return them valid user id's, 
otherwise bus-test fails. How to replace on win32 ?.
* dbus/dbus-sysdeps-win.c (fill_win_user_info_homedir): fix memory leak.

Index: dbus-sysdeps-win.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps-win.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dbus-sysdeps-win.c	8 Mar 2007 13:04:18 -0000	1.2
+++ dbus-sysdeps-win.c	8 Mar 2007 13:40:16 -0000	1.3
@@ -1304,7 +1304,9 @@
   else
     {
       char *dc_string = _dbus_win_utf16_to_utf8(dc,error);
-      _dbus_warn("NetUserGetInfo() for user '%s' failed with errorcode %d '%s', %s\n",_dbus_win_utf16_to_utf8(wname,error), ret,_dbus_lm_strerror(ret),dc_string);
+	  char *user_name = _dbus_win_utf16_to_utf8(wname,error);
+      _dbus_warn("NetUserGetInfo() for user '%s' failed with errorcode %d '%s', %s\n",user_name, ret,_dbus_lm_strerror(ret),dc_string);
+      dbus_free(user_name);
       dbus_free(dc_string);
       /* Not set, so use something random. */
       info->homedir = _dbus_strdup ("\\");



More information about the dbus-commit mailing list