MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / MRU_Delete

Function MRU_Delete

src/Helpers.c:1546–1560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1544}
1545
1546BOOL MRU_Delete ( LPMRULIST pmru, int iIndex )
1547{
1548 int i;
1549 if ( iIndex < 0 || iIndex > pmru->iSize - 1 ) {
1550 return ( 0 );
1551 }
1552 if ( pmru->pszItems[iIndex] ) {
1553 LocalFree ( pmru->pszItems[iIndex] );
1554 }
1555 for ( i = iIndex; i < pmru->iSize - 1; i++ ) {
1556 pmru->pszItems[i] = pmru->pszItems[i + 1];
1557 pmru->pszItems[i + 1] = NULL;
1558 }
1559 return ( 1 );
1560}
1561
1562BOOL MRU_DeleteFileFromStore ( LPMRULIST pmru, LPCWSTR pszFile )
1563{

Callers 2

MRU_DeleteFileFromStoreFunction · 0.85
FileMRUDlgProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected