2 more places where win2003 forces UCS2
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 06:01:45 +0000 (06:01 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 06:01:45 +0000 (06:01 +0000)
(This used to be commit b64f6e52ec8aa0892b405d3360079ababc8527f4)

source3/smbd/trans2.c

index ba6162833b5c8cdf764b96cce52d39e15159bc2b..2bf250a980fa81b725283a5fee35fe610cbe41dd 100644 (file)
@@ -1381,7 +1381,7 @@ static int call_trans2qfsinfo(connection_struct *conn, char *inbuf, char *outbuf
                        SIVAL(pdata,4,255); /* Max filename component length */
                        /* NOTE! the fstype must *not* be null terminated or win98 won't recognise it
                                and will think we can't do long filenames */
-                       len = srvstr_push(outbuf, pdata+12, fstype, -1, 0);
+                       len = srvstr_push(outbuf, pdata+12, fstype, -1, STR_UNICODE);
                        SIVAL(pdata,8,len);
                        data_len = 12 + len;
                        break;
@@ -1403,7 +1403,7 @@ static int call_trans2qfsinfo(connection_struct *conn, char *inbuf, char *outbuf
                        SIVAL(pdata,8,str_checksum(lp_servicename(snum)) ^ 
                                (str_checksum(local_machine)<<16));
 
-                       len = srvstr_push(outbuf, pdata+18, vname, -1, 0);
+                       len = srvstr_push(outbuf, pdata+18, vname, -1, STR_UNICODE);
                        SIVAL(pdata,12,len);
                        data_len = 18+len;
                        DEBUG(5,("call_trans2qfsinfo : SMB_QUERY_FS_VOLUME_INFO namelen = %d, vol=%s serv=%s\n",