Try rewinding the stream after line 20: Code: li.QuadPart = 0; pIStream->Seek(li, STREAM_SEEK_SET, NULL); gg
li.QuadPart = 0; pIStream->Seek(li, STREAM_SEEK_SET, NULL);
How to Ask Questions The Smart Way How to Report Bugs Effectively The Only Correct Indent Style