fixed case when MsgWaitForEvent() caught WM_QUIT when exiting
fixed case when MsgWaitForEvent() caught WM_QUIT when exiting

vividos/RemotePhotoTool,vividos/RemotePhotoTool,vividos/RemotePhotoTool,vividos/RemotePhotoTool