Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18 | Rev 20 | ||
---|---|---|---|
Line 143... | Line 143... | ||
143 | FILE* f; |
143 | FILE* f; |
144 | long file_len; |
144 | long file_len; |
145 | size_t bytes_read; |
145 | size_t bytes_read; |
146 | char* buf; |
146 | char* buf; |
147 | 147 | ||
148 | f = Harness_Hook_fopen(pFile_name, "rb"); |
148 | f = Harness_Hook_fopen (pFile_name, "rb"); |
149 | if (f == NULL) { |
149 | if (f == NULL) { |
150 | gS3_last_error = eS3_error_readfile; |
150 | gS3_last_error = eS3_error_readfile; |
151 | return 0; |
151 | return 0; |
152 | } |
152 | } |
153 | fseek(f, 0, SEEK_END); |
153 | fseek(f, 0, SEEK_END); |
Line 184... | Line 184... | ||
184 | tWAVEFORMATEX_* wav_format; // [esp+C4h] [ebp-10h] BYREF |
184 | tWAVEFORMATEX_* wav_format; // [esp+C4h] [ebp-10h] BYREF |
185 | char* data_ptr; // [esp+C8h] [ebp-Ch] BYREF |
185 | char* data_ptr; // [esp+C8h] [ebp-Ch] BYREF |
186 | // char* locked_buffer_data; // [esp+CCh] [ebp-8h] BYREF |
186 | // char* locked_buffer_data; // [esp+CCh] [ebp-8h] BYREF |
187 | size_t file_len; // [esp+D0h] [ebp-4h] |
187 | size_t file_len; // [esp+D0h] [ebp-4h] |
188 | 188 | ||
189 | f = Harness_Hook_fopen(pFile_name, "rb"); |
189 | f = Harness_Hook_fopen (pFile_name, "rb"); |
190 | if (f == NULL) { |
190 | if (f == NULL) { |
191 | gS3_last_error = eS3_error_readfile; |
191 | gS3_last_error = eS3_error_readfile; |
192 | return 0; |
192 | return 0; |
193 | } |
193 | } |
194 | fseek(f, 0, SEEK_END); |
194 | fseek(f, 0, SEEK_END); |