Changeset 67
- Timestamp:
- Sep 5, 2007, 11:24:34 AM (18 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/samba/source/ndpsmb/smbcd.c (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/samba/source/ndpsmb/smbcd.cr46 r67 699 699 } 700 700 pipe = (HPIPE)arg; 701 rc = DosAllocMem((PPVOID)&cli, smbwrp_getclisize(), PAG_COMMIT | PAG_READ | PAG_WRITE | OBJ_ANY);702 if (rc)703 {704 rc = DosAllocMem((PPVOID)&cli, smbwrp_getclisize(), PAG_COMMIT | PAG_READ | PAG_WRITE);705 }706 701 cli = (cli_state *)calloc(smbwrp_getclisize(), 1); 707 if ( rc ||!cli)702 if (!cli) 708 703 { 709 704 debuglocal(0,"Not enough memory to initialize client structure\n"); 705 DosDisConnectNPipe(pipe); 710 706 DosClose(pipe); 711 707 return; 712 708 } 713 memset(cli, 0, smbwrp_getclisize());714 709 debuglocal(0,"opening client pipe %d\n", pipe); 715 710 for (;;) … … 736 731 debuglocal(0,"shutdown client %d with rc %d\n", pipe, rc); 737 732 break; 738 // YD this seems to make PMView to show thumbnails faster,739 // no delay shown while using FOC.740 DosSleep(0);741 733 } 742 734 // YD this seems to make PMView to show thumbnails faster, 743 735 // no delay shown while using FOC. 744 736 DosSleep(0); 737 if (req.request == SMBREQ_DISCONNECT) 738 { 739 /* The cli structure was deallocated. Reallocate it. */ 740 cli = (cli_state *)calloc(smbwrp_getclisize(), 1); 741 if (!cli) 742 { 743 debuglocal(0,"Not enough memory to initialize client structure\n"); 744 break; 745 } 746 } 745 747 } 746 748 debuglocal(0,"closing client pipe %d\n", pipe); 747 749 DosDisConnectNPipe(pipe); 748 750 DosClose(pipe); 749 memset(cli, 0, smbwrp_getclisize());750 DosFreeMem(cli);751 751 } 752 752 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
