My USB flash drive got corrupted and Windows said it wasn't formatted. Fortunately, I had just backed it up to test it with H2testw. At the time, I couldn't find any free data recovery programs. In case this happens in the future, try PhotoRec, which is free and open-source. It only seems to be able to recover the entire drive, not individual files, though.