mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
#include "common/windows/registry.h"
|
||||
|
||||
void ffDetectCursor(FFCursorResult* result) {
|
||||
FF_AUTO_CLOSE_FD HANDLE hKey = NULL;
|
||||
FF_AUTO_CLOSE_FD HANDLE hKey = nullptr;
|
||||
if (ffRegOpenKeyForRead(HKEY_CURRENT_USER, L"Control Panel\\Cursors", &hKey, &result->error)) {
|
||||
if (ffRegReadStrbuf(hKey, NULL, &result->theme, &result->error)) {
|
||||
if (ffRegReadStrbuf(hKey, nullptr, &result->theme, &result->error)) {
|
||||
uint32_t cursorBaseSize;
|
||||
if (ffRegReadUint(hKey, L"CursorBaseSize", &cursorBaseSize, NULL)) {
|
||||
if (ffRegReadUint(hKey, L"CursorBaseSize", &cursorBaseSize, nullptr)) {
|
||||
// Not available on Windows 8.1
|
||||
ffStrbufAppendUInt(&result->size, cursorBaseSize);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user