Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenfont/intern/blf_font_win32_compat.c')
-rw-r--r--source/blender/blenfont/intern/blf_font_win32_compat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenfont/intern/blf_font_win32_compat.c b/source/blender/blenfont/intern/blf_font_win32_compat.c
index c609d67ece1..e73df4dbfc7 100644
--- a/source/blender/blenfont/intern/blf_font_win32_compat.c
+++ b/source/blender/blenfont/intern/blf_font_win32_compat.c
@@ -59,13 +59,15 @@ static unsigned long ft_ansi_stream_io(FT_Stream stream,
unsigned long count)
{
FILE *file;
- if (!count && offset > stream->size)
+ if (!count && offset > stream->size) {
return 1;
+ }
file = STREAM_FILE(stream);
- if (stream->pos != offset)
+ if (stream->pos != offset) {
fseek(file, offset, SEEK_SET);
+ }
return fread(buffer, 1, count, file);
}