summarylogtreecommitdiffstats
path: root/fix-grit.patch
blob: 186091eee698580be05bfa4153c35aa186bfdf32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From cd792af5f92da6dfa00b0ed32126e6ccd17619b1 Mon Sep 17 00:00:00 2001
From: Dave Murphy <davem@devkitpro.org>
Date: Sat, 17 Sep 2016 15:58:04 +0100
Subject: [PATCH] return NULL rather than false

---
 cldib/cldib_conv.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cldib/cldib_conv.cpp b/cldib/cldib_conv.cpp
index d0db746..11c2967 100644
--- a/cldib/cldib_conv.cpp
+++ b/cldib/cldib_conv.cpp
@@ -179,7 +179,7 @@ CLDIB *dib_bit_unpack_copy(CLDIB *src, int dstB, DWORD base)
 	CLDIB *dst= dib_alloc(srcW, srcH, dstB, NULL, dib_is_topdown(src));
 
 	if(dst==NULL)
-		return false;
+		return NULL;
 
 	BYTE *srcD= dib_get_img(src), *dstD= dib_get_img(dst);
 
@@ -256,7 +256,7 @@ CLDIB *dib_8_to_true_copy(CLDIB *src, int dstB)
 	CLDIB *dst= dib_alloc(srcW, srcH, dstB, NULL, dib_is_topdown(src));
 
 	if(dst==NULL)
-		return false;
+		return NULL;
 
 	BYTE *srcD= dib_get_img(src), *dstD= dib_get_img(dst);
 
@@ -301,7 +301,7 @@ CLDIB *dib_true_to_true_copy(CLDIB *src, int dstB)
 	CLDIB *dst= dib_alloc(srcW, srcH, dstB, NULL, dib_is_topdown(src));
 
 	if(dst==NULL)
-		return false;
+		return NULL;
 
 	BYTE *srcD= dib_get_img(src), *dstD= dib_get_img(dst);