reactos/base/system/userinit
Hermès Bélusca-Maïto cba0d64645
[SYSDM][USERINIT] Fix uninitialized variables warnings detected by Clang. (#3619)
CORE-17545

Addendum to commit d635ce0c.

- Move the HDC variables initialization via function calls, out of
  the variables declaration block.

- Fix warnings (and identical for base/system/userinit/livecd.c):

dll/cpl/sysdm/general.c:72:9: warning: variable 'hLogo' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
    if (hDC == NULL || hDCLogo == NULL || hDCMask == NULL)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dll/cpl/sysdm/general.c:130:9: note: uninitialized use occurs here
    if (hLogo != NULL) DeleteObject(hLogo);
        ^~~~~

and similar for hMask too:

dll/cpl/sysdm/general.c:129:9: note: uninitialized use occurs here
    if (hMask != NULL) DeleteObject(hMask);
        ^~~~~
2021-05-05 17:24:10 +02:00
..
lang [CHKDSK][USERINIT] Add and improve Portuguese (pt-PT) translation (#3553) 2021-04-11 10:40:58 +03:00
res
CMakeLists.txt
livecd.c [SYSDM][USERINIT] Fix uninitialized variables warnings detected by Clang. (#3619) 2021-05-05 17:24:10 +02:00
resource.h
userinit.c [USERINIT] Enhancements for starting ReactOS GUI installer or Explorer shell. 2018-10-08 21:16:46 +02:00
userinit.h [USERINIT] Add unattend.inf functionality to livecd 2020-05-05 20:54:30 +02:00
userinit.rc [RUNONCE][USERINIT] Add Portuguese (neutral) translation. (#1656) 2019-06-17 15:12:12 +02:00