/[rdesktop]/sourceforge.net/trunk/rdesktop/disk.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/disk.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 785 by astrand, Thu Oct 21 08:10:04 2004 UTC revision 787 by astrand, Thu Oct 21 08:28:03 2004 UTC
# Line 241  disk_create(uint32 device_id, uint32 acc Line 241  disk_create(uint32 device_id, uint32 acc
241          flags = 0;          flags = 0;
242          mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;          mode = S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH;
243    
244            if (*filename && filename[strlen(filename) - 1] == '/')
         if (filename[strlen(filename) - 1] == '/')  
245                  filename[strlen(filename) - 1] = 0;                  filename[strlen(filename) - 1] = 0;
246          sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename);          sprintf(path, "%s%s", g_rdpdr_device[device_id].local_path, filename);
247    
# Line 551  disk_query_information(NTHANDLE handle, Line 550  disk_query_information(NTHANDLE handle,
550  NTSTATUS  NTSTATUS
551  disk_set_information(NTHANDLE handle, uint32 info_class, STREAM in, STREAM out)  disk_set_information(NTHANDLE handle, uint32 info_class, STREAM in, STREAM out)
552  {  {
553          uint32 device_id, length, file_attributes, ft_high, ft_low;          uint32 length, file_attributes, ft_high, ft_low;
554          char newname[256], fullpath[256];          char newname[256], fullpath[256];
555          struct fileinfo *pfinfo;          struct fileinfo *pfinfo;
556    
# Line 977  disk_query_directory(NTHANDLE handle, ui Line 976  disk_query_directory(NTHANDLE handle, ui
976  static NTSTATUS  static NTSTATUS
977  disk_device_control(NTHANDLE handle, uint32 request, STREAM in, STREAM out)  disk_device_control(NTHANDLE handle, uint32 request, STREAM in, STREAM out)
978  {  {
         uint32 result;  
   
979          if (((request >> 16) != 20) || ((request >> 16) != 9))          if (((request >> 16) != 20) || ((request >> 16) != 9))
980                  return STATUS_INVALID_PARAMETER;                  return STATUS_INVALID_PARAMETER;
981    

Legend:
Removed from v.785  
changed lines
  Added in v.787

  ViewVC Help
Powered by ViewVC 1.1.26