summaryrefslogtreecommitdiff
path: root/src/win32/registryKey.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 07:51:26 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 07:51:26 +0000
commit5850046cf4bf3146c7da097f9ff3dec01459b640 (patch)
tree112fc3503c379be693b7b4cf88adba102312e924 /src/win32/registryKey.cpp
parentreplaced regular throws with AnytunError::thowErr (diff)
moved LogErrno to AnytunErrno
Diffstat (limited to 'src/win32/registryKey.cpp')
-rw-r--r--src/win32/registryKey.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/win32/registryKey.cpp b/src/win32/registryKey.cpp
index 4ce92b9..9f4b653 100644
--- a/src/win32/registryKey.cpp
+++ b/src/win32/registryKey.cpp
@@ -87,19 +87,19 @@ void RegistryKey::close()
std::string RegistryKey::operator[](std::string const& name) const
{
if(!opened_)
- throw LogErrno(ERROR_INVALID_HANDLE);
+ throw AnytunErrno(ERROR_INVALID_HANDLE);
char value[STRING_VALUE_LENGTH];
DWORD len = sizeof(value);
LONG err = RegQueryValueExA(key_, name.c_str(), NULL, NULL, (LPBYTE)value, &len);
if(err != ERROR_SUCCESS)
- throw LogErrno(err);
+ throw AnytunErrno(err);
if(value[len-1] != 0) {
if(len < sizeof(value))
value[len++] = 0;
else
- throw LogErrno(ERROR_INSUFFICIENT_BUFFER);
+ throw AnytunErrno(ERROR_INSUFFICIENT_BUFFER);
}
return std::string(value);
}