mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
minor fix
svn path=/trunk/; revision=11068
This commit is contained in:
parent
5ee10c6024
commit
c28cd9af2c
1 changed files with 2 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: slayer.c,v 1.2 2004/09/26 10:43:00 weiden Exp $
|
/* $Id: slayer.c,v 1.3 2004/09/26 13:25:42 weiden Exp $
|
||||||
*
|
*
|
||||||
* PROJECT: ReactOS Compatibility Layer Shell Extension
|
* PROJECT: ReactOS Compatibility Layer Shell Extension
|
||||||
* FILE: lib/shellext/cplsample/cplsample.c
|
* FILE: lib/shellext/cplsample/cplsample.c
|
||||||
|
@ -413,13 +413,9 @@ ApplySettings(LPCOMPATIBILITYPAGE this, HWND hwndDlg)
|
||||||
PCITEM sel = this->CItems;
|
PCITEM sel = this->CItems;
|
||||||
|
|
||||||
/* map the index to a CITEM structure */
|
/* map the index to a CITEM structure */
|
||||||
for(i = index; i > 0; i--)
|
for(i = index; i > 0 && sel != NULL; i--)
|
||||||
{
|
{
|
||||||
sel = sel->next;
|
sel = sel->next;
|
||||||
if(sel == NULL)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* update the CSelectedItem member */
|
/* update the CSelectedItem member */
|
||||||
|
|
Loading…
Reference in a new issue