@@ -24,20 +24,20 @@ ULONG __stdcall CFileStreamReader::Release()
2424
2525HRESULT __stdcall CFileStreamReader::QueryInterface (REFIID riid, void ** ppv)
2626{
27- if (riid == IID_IUnknown)
28- *ppv = (IUnknown*)this ;
29- else if (riid == IID_StreamReader)
30- *ppv = (StreamReader*)this ;
31- else if (riid == IID_SeekableStreamReader)
32- *ppv = (SeekableStreamReader*)this ;
33- else
34- {
35- *ppv = NULL ;
36- return E_NOINTERFACE;
37- }
38- AddRef ();
39-
40- return S_OK;
27+ if (riid == IID_IUnknown)
28+ *ppv = (IUnknown*)this ;
29+ else if (riid == IID_StreamReader)
30+ *ppv = (StreamReader*)this ;
31+ else if (riid == IID_SeekableStreamReader)
32+ *ppv = (SeekableStreamReader*)this ;
33+ else
34+ {
35+ *ppv = NULL ;
36+ return E_NOINTERFACE;
37+ }
38+ AddRef ();
39+
40+ return S_OK;
4141}
4242
4343
@@ -116,14 +116,14 @@ CFileStreamReader::CFileStreamReader(BSTR fileName) : m_cRef(1)
116116 // Initialize class variables
117117 status = 0 ;
118118
119- // Open the file
119+ // Open the file
120120 hFile = CreateFileW (fileName, // lpFileName
121121 GENERIC_READ, // dwDesired access
122122 FILE_SHARE_READ,// dwShareMode
123123 NULL , // lpSecurityAttributes
124124 OPEN_EXISTING, // dwCreationDisposition
125- FILE_ATTRIBUTE_NORMAL |
126- FILE_FLAG_SEQUENTIAL_SCAN,
125+ FILE_ATTRIBUTE_NORMAL |
126+ FILE_FLAG_SEQUENTIAL_SCAN,
127127 // dwFlagsAndAttributes
128128 NULL // hTemplate
129129 );
@@ -136,7 +136,7 @@ CFileStreamReader::CFileStreamReader(BSTR fileName) : m_cRef(1)
136136 if (hFile == 0 )
137137 {
138138 // Try to open the file using ANSI version of CreateFile
139-
139+
140140 // Allocate space for a temporary ASCII fileName string
141141 int stringLength = SysStringLen (fileName);
142142 char *tempString = new char [stringLength+1 ];
@@ -150,8 +150,8 @@ CFileStreamReader::CFileStreamReader(BSTR fileName) : m_cRef(1)
150150 FILE_SHARE_READ,// dwShareMode
151151 NULL , // lpSecurityAttributes
152152 OPEN_EXISTING, // dwCreationDisposition
153- FILE_ATTRIBUTE_NORMAL |
154- FILE_FLAG_SEQUENTIAL_SCAN,
153+ FILE_ATTRIBUTE_NORMAL |
154+ FILE_FLAG_SEQUENTIAL_SCAN,
155155 // dwFlagsAndAttributes
156156 NULL // hTemplate
157157 );
0 commit comments