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:
authorThomas Dinges <blender@dingto.org>2012-08-31 23:57:03 +0400
committerThomas Dinges <blender@dingto.org>2012-08-31 23:57:03 +0400
commit99abcb8e45868bab7a9c4f840ec4029cc000f79e (patch)
treeb3c5cbc582868c17ecd753ebe6a4e24e7beaca87 /source/blender/imbuf/intern/bmp.c
parent2694b68d4a9dac16b3b6c6c73b4422bd6fdd52a1 (diff)
Possible fix for [#32462] blender cannot load bmp files (Windows OS).
* Typo in the CHECK_HEADER_FIELD macro. Patch by kjym3 in IRC, thanks!
Diffstat (limited to 'source/blender/imbuf/intern/bmp.c')
-rw-r--r--source/blender/imbuf/intern/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/bmp.c b/source/blender/imbuf/intern/bmp.c
index 60dd4f65594..8fa468949e7 100644
--- a/source/blender/imbuf/intern/bmp.c
+++ b/source/blender/imbuf/intern/bmp.c
@@ -69,7 +69,7 @@ typedef struct BMPHEADER {
static int checkbmp(unsigned char *mem)
{
-#define CHECK_HEADER_FIELD(mem, field) ((mem[0] == field[0]) && (mem[1] == field[0]))
+#define CHECK_HEADER_FIELD(mem, field) ((mem[0] == field[0]) && (mem[1] == field[1]))
int ret_val = 0;
BMPINFOHEADER bmi;