>> Or am I missing something... > Yes, we have a miserable trap of fall-through: No, I did see the fall-through. But if pDlg is NULL (a bit earlier), we don't enter the block that contains the switch with the fall-through, where the other (hopefully only other possible) case does set pArgs. --tml