Ignore:
Timestamp:
Mar 3, 2003, 5:39:53 PM (22 years ago)
Author:
sandervl
Message:

DeleteFile: when deleting a .lnk file, verify if it's a shell link object file. if so, delete WPS object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/Fileio.cpp

    r9846 r9892  
    1 /* $Id: Fileio.cpp,v 1.70 2003-02-24 11:40:45 sandervl Exp $ */
     1/* $Id: Fileio.cpp,v 1.71 2003-03-03 16:39:53 sandervl Exp $ */
    22
    33/*
     
    3535#include "handlemanager.h"
    3636#include "oslibdos.h"
     37#include "oslibwps.h"
    3738
    3839#define DBG_LOCALLOG    DBG_fileio
     
    637638  }
    638639#endif
     640
     641  if(lpszFile == NULL) {
     642      SetLastError(ERROR_INVALID_PARAMETER); //??
     643      return FALSE;
     644  }
     645  //If the app is deleting a shellink file (.lnk), then we must delete the WPS object
     646  if(OSLibIsShellLink((LPSTR)lpszFile))
     647  {
     648      OSLibWinDeleteObject((LPSTR)lpszFile);
     649  }
     650
    639651  rc = OSLibDosDelete((LPSTR)lpszFile);
    640652  if(!rc) {
Note: See TracChangeset for help on using the changeset viewer.