summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralexey.lysiuk2014-05-11 15:49:28 +0300
committeralexey.lysiuk2014-05-11 15:49:28 +0300
commita0298b951abc1468616fed1f248ae83b5bb50550 (patch)
treed96463bf3aec739e1a31c92678b25d371aef5573
parent6487e1429d4a6626a1a2ee18826ffe3ece241305 (diff)
downloadchocolate-doom-a0298b951abc1468616fed1f248ae83b5bb50550.tar.gz
chocolate-doom-a0298b951abc1468616fed1f248ae83b5bb50550.tar.bz2
chocolate-doom-a0298b951abc1468616fed1f248ae83b5bb50550.zip
Fix compilation with MSVC2008
-rw-r--r--src/i_sdlmusic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/i_sdlmusic.c b/src/i_sdlmusic.c
index e7f0aacb..cf4a6b8b 100644
--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -275,6 +275,8 @@ static void ParseFlacFile(file_metadata_t *metadata, FILE *fs)
for (;;)
{
+ long pos = -1;
+
// Read METADATA_BLOCK_HEADER:
if (fread(header, 4, 1, fs) < 1)
{
@@ -285,7 +287,7 @@ static void ParseFlacFile(file_metadata_t *metadata, FILE *fs)
last_block = (header[0] & 0x80) != 0;
block_len = (header[1] << 16) | (header[2] << 8) | header[3];
- long pos = ftell(fs);
+ pos = ftell(fs);
if (pos < 0)
{
return;