不等于或者不等于,两个总有一个成立,因此。。。总会进入if。
你这里的逻辑,应该用:
if(Sdata.Right(3)!="WAV" && Sdata.Right(3)!="wav")//&& { MessageBox("请选择WAV文件","提示",MB_OK); return ; }