Author: jerry Date: 2005-09-14 22:04:43 +0000 (Wed, 14 Sep 2005) New Revision: 10229
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10229 Log: got past the invalid device ID error from the Configuration Manager. Now onto the next rpc (0x06) Modified: trunk/source/rpc_server/srv_ntsvcs_nt.c Changeset: Modified: trunk/source/rpc_server/srv_ntsvcs_nt.c =================================================================== --- trunk/source/rpc_server/srv_ntsvcs_nt.c 2005-09-14 21:48:03 UTC (rev 10228) +++ trunk/source/rpc_server/srv_ntsvcs_nt.c 2005-09-14 22:04:43 UTC (rev 10229) @@ -31,7 +31,7 @@ { static pstring path; - pstr_sprintf( path, "ROOT\\Legacy\\%s\\0000", device ); + pstr_sprintf( path, "ROOT\\Legacy_%s\\0000", device ); return path; } @@ -80,6 +80,10 @@ rpcstr_pull(device, q_u->devicename->buffer, sizeof(device), q_u->devicename->uni_str_len*2, 0); devicepath = get_device_path( device ); + /* From the packet traces I've see, I think this really should be an array + of UNISTR2's. But I've never seen more than one string in spite of the + fact that the string in dounel NULL terminated. -- jerry */ + init_unistr2( &r_u->devicepath, devicepath, UNI_STR_TERMINATE ); r_u->needed = r_u->devicepath.uni_str_len;