- Fixed spelling
This commit is contained in:
parent
ca6fd45d37
commit
80284dbb7f
|
@ -117,8 +117,8 @@ bool IsAutorunEnabled()
|
||||||
HKEY hkey = nullptr;
|
HKEY hkey = nullptr;
|
||||||
if (ERROR_SUCCESS == RegOpenKeyEx (HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, KEY_ALL_ACCESS, &hkey))
|
if (ERROR_SUCCESS == RegOpenKeyEx (HKEY_CURRENT_USER, L"Software\\Microsoft\\Windows\\CurrentVersion\\Run", 0, KEY_ALL_ACCESS, &hkey))
|
||||||
{
|
{
|
||||||
// First, determine the required buffer size, including NUL terminator (in bytes). RegGetValue() alway's adds
|
// First, determine the required buffer size, including NUL terminator (in bytes). RegGetValue() always adds
|
||||||
// an extra NULL terminator to size, even if one already exists, in case the stored value doesn't have one.
|
// an extra NUL terminator to size, even if one already exists, in case the stored value doesn't have one.
|
||||||
DWORD size {0};
|
DWORD size {0};
|
||||||
if (ERROR_SUCCESS == RegGetValue(hkey, nullptr, AUTO_RUN_KEY_NAME, RRF_RT_REG_SZ, nullptr, nullptr, &size))
|
if (ERROR_SUCCESS == RegGetValue(hkey, nullptr, AUTO_RUN_KEY_NAME, RRF_RT_REG_SZ, nullptr, nullptr, &size))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue