fixes needed for separate DLL build to work
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -682,7 +682,10 @@ bool wxRegKey::DeleteValue(const wxChar *szValue)
|
||||
|
||||
#if defined(__WIN32__)
|
||||
m_dwLastError = RegDeleteValue((HKEY) m_hKey, WXSTRINGCAST szValue);
|
||||
if ( m_dwLastError != ERROR_SUCCESS ) {
|
||||
|
||||
// deleting a value which doesn't exist is not considered an error
|
||||
if ( (m_dwLastError != ERROR_SUCCESS) &&
|
||||
(m_dwLastError != ERROR_FILE_NOT_FOUND) ) {
|
||||
wxLogSysError(m_dwLastError, _("Can't delete value '%s' from key '%s'"),
|
||||
szValue, GetName().c_str());
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user