Skip to content

Commit

Permalink
code updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jformacek committed Jan 25, 2023
1 parent 4c63a98 commit 2bd4742
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Main/AdmPwd/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Config::~Config()
}

_Use_decl_annotations_
HRESULT Config::GetRegistryDWORD(HKEY hReg, LPCTSTR regValueName, DWORD *retVal) {
HRESULT Config::GetRegistryDWORD(HKEY hReg, LPCTSTR regValueName, DWORD *retVal) noexcept {
LONG lResult;
DWORD dwBuffLen = sizeof(*retVal);

Expand All @@ -87,7 +87,7 @@ HRESULT Config::GetRegistryDWORD(HKEY hReg, LPCTSTR regValueName, DWORD *retVal)
}

_Use_decl_annotations_
HRESULT Config::GetRegistryString(HKEY hReg, LPCTSTR regValueName, TCHAR **retVal, DWORD *dwStringLen)
HRESULT Config::GetRegistryString(HKEY hReg, LPCTSTR regValueName, TCHAR **retVal, DWORD *dwStringLen) noexcept
{
LONG lResult;
DWORD dwBuffLen = 0;
Expand Down
4 changes: 2 additions & 2 deletions Main/AdmPwd/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ class Config
bool _pwdExpirationProtectionRequired;

//methods
HRESULT GetRegistryDWORD(_In_ HKEY hReg, _In_ LPCTSTR regValueName, _Out_ DWORD *retVal);
HRESULT GetRegistryString(_In_ HKEY hReg, _In_ LPCTSTR regValueName, _Out_ TCHAR **retVal, _Out_ DWORD *dwStringLen);
HRESULT GetRegistryDWORD(_In_ HKEY hReg, _In_ LPCTSTR regValueName, _Out_ DWORD *retVal) noexcept;
HRESULT GetRegistryString(_In_ HKEY hReg, _In_ LPCTSTR regValueName, _Out_ TCHAR **retVal, _Out_ DWORD *dwStringLen) noexcept;
};

#endif // !ADMPWD_CONFIG

0 comments on commit 2bd4742

Please sign in to comment.