made dptr_num signed to handle -1 from OS/2
authorAndrew Tridgell <tridge@samba.org>
Sun, 5 May 1996 11:35:09 +0000 (11:35 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 5 May 1996 11:35:09 +0000 (11:35 +0000)
(This used to be commit d2c5ab135ca7ee6366f5f8733440318a724a4378)

source3/smbd/trans2.c

index 9d02123cf876288b3e7e03535af51831039546ca..f158aae35734034235f0e080b0605f9b1bf2ec90 100644 (file)
@@ -1444,7 +1444,7 @@ int reply_findclose(char *inbuf,char *outbuf,int length,int bufsize)
 {
   int cnum;
   int outsize = 0;
-  uint16 dptr_num=SVAL(inbuf,smb_vwv0);
+  int16 dptr_num=SSVAL(inbuf,smb_vwv0);
 
   cnum = SVAL(inbuf,smb_tid);