reactos/base/system
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
..
autochk [FSLIB][FMIFS][AUTOCHK][SETUPLIB] Use more Windows-compatible (but not fully compatible yet) Format() and Chkdsk() ULIB functions. 2020-11-22 21:57:07 +01:00
bootok Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
chkdsk [CHKDSK][USERINIT] Add and improve Portuguese (pt-PT) translation (#3553) 2021-04-11 10:40:58 +03:00
diskpart [TRANSLATION][INF] Update Chinese Traditional (zh-TW) translation (#3468) 2021-03-09 16:51:37 +01:00
dllhost [DLLHOST] Add dllhost to make the device driver extractor for my Lenovo T400 happy 2018-08-11 22:25:30 +02:00
expand [EXPAND] Sync with Wine Staging 3.3. CORE-14434 2018-04-01 13:12:40 +01:00
format [TRANSLATION][INF] Update Chinese Traditional (zh-TW) translation (#3468) 2021-03-09 16:51:37 +01:00
logonui Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
lsass [LSASS] Initialize SAM before starting the security services 2019-08-10 14:36:10 +02:00
msiexec [MSIEXEC] Sync with Wine Staging 3.3. CORE-14434 2018-04-01 13:13:47 +01:00
regsvr32 [TRANSLATION] Chinese Traditional translation improvements (#3085) 2020-09-18 00:50:27 +02:00
rundll32 [TRANSLATION] Chinese Traditional translation improvements (#3085) 2020-09-18 00:50:27 +02:00
runonce [RUNONCE][USERINIT] Add Portuguese (neutral) translation. (#1656) 2019-06-17 15:12:12 +02:00
services [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
smss [SMSS] Revert commit 131bc73 2020-11-26 13:06:20 +03:00
subst [BASE] Improve Spanish (es-ES) translation (#3088) 2020-08-25 18:10:23 +03:00
userinit [SYSDM][USERINIT] Fix uninitialized variables warnings detected by Clang. (#3619) 2021-05-05 17:24:10 +02:00
winlogon [WINLOGON] Update Russian (ru-RU) translation 2021-04-25 20:22:45 +03:00
CMakeLists.txt [DLLHOST] Add dllhost to make the device driver extractor for my Lenovo T400 happy 2018-08-11 22:25:30 +02:00