Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
506 B

  1. #include "sol.h"
  2. VSZASSERT
  3. BOOL FInitUndo(UDR *pudr)
  4. {
  5. INT icol;
  6. pudr->fAvail = fFalse;
  7. for(icol = 0; icol < 2; icol++)
  8. if((pudr->rgpcol[icol] = PcolCreate(NULL, 0, 0, 0, 0, icrdUndoMax)) == NULL)
  9. {
  10. if(icol != 0)
  11. FreeP(pudr->rgpcol[0]);
  12. return fFalse;
  13. }
  14. return fTrue;
  15. }
  16. VOID FreeUndo(UDR *pudr)
  17. {
  18. INT icol;
  19. for(icol = 0; icol < 2; icol++)
  20. FreeP(pudr->rgpcol[icol]);
  21. }