https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8f726184539ffc21c1baeb402101d54f5a815b27

commit 8f726184539ffc21c1baeb402101d54f5a815b27
Author:     Serge Gautherie <[email protected]>
AuthorDate: Tue Jan 14 18:54:17 2020 +0100
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Tue Jan 14 18:54:17 2020 +0100

    [SYSDM] general.c: Make 2 global variables 'static' (#2060)
    
    And 1 'const' too.
    
    This allows reducing confusion about scope/use.
---
 dll/cpl/sysdm/general.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dll/cpl/sysdm/general.c b/dll/cpl/sysdm/general.c
index 9c76df6ae83..68436639e19 100644
--- a/dll/cpl/sysdm/general.c
+++ b/dll/cpl/sysdm/general.c
@@ -28,8 +28,8 @@ typedef struct _IMGINFO
     INT iBits;
 } IMGINFO, *PIMGINFO;
 
-PIMGINFO pImgInfo = NULL;
-BLENDFUNCTION BlendFunc = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA};
+static PIMGINFO pImgInfo;
+static const BLENDFUNCTION BlendFunc = {AC_SRC_OVER, 0, 255, AC_SRC_ALPHA};
 
 VOID ShowLastWin32Error(HWND hWndOwner)
 {

Reply via email to