reactos/dll
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
..
3rdparty [CMAKE] Some options are only supported by GCC, don't use them for clang 2021-04-09 03:58:19 +03:00
apisets [WINSXS] Add some amd64 manifests 2021-04-08 20:48:24 +03:00
appcompat [REACTOS] *.spec: Fix some function/parameter types (#3154) 2020-09-20 19:21:11 +02:00
cpl [SYSDM][USERINIT] Fix uninitialized variables warnings detected by Clang. (#3619) 2021-05-05 17:24:10 +02:00
directx [CMAKE] Some options are only supported by GCC, don't use them for clang 2021-04-09 03:58:19 +03:00
keyboard [KEYBOARD] Add Swiss French keyboard layout (#3408) 2021-01-05 17:48:53 +03:00
nls [CMAKE] Replace custom functions to built-in ones 2020-04-16 15:59:38 +03:00
np [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
ntdll [REACTOS] Fix parameter types on some exports (#3217) 2021-05-01 21:11:34 +02:00
opengl [CMAKE] Some options are only supported by GCC, don't use them for clang 2021-04-09 03:58:19 +03:00
shellext [TRANSLATION] Chinese Traditional (zh-TW) translation update (#3526) 2021-04-11 10:59:19 +02:00
win32 [TRANSLATION] indonesian add and update apps/shell translation 2021-05-05 11:34:28 +02:00
CMakeLists.txt [APISETS] Add the initial set of auto-generated files. 2018-04-07 14:50:59 +02:00