[SYSDM] general.c: Make 2 global variables 'static' (#2060)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Tue, 14 Jan 2020 17:54:17 +0000 (18:54 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Tue, 14 Jan 2020 17:54:17 +0000 (18:54 +0100)
And 1 'const' too.

This allows reducing confusion about scope/use.

dll/cpl/sysdm/general.c

index 9c76df6..6843663 100644 (file)
@@ -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)
 {