<rdar://problem/7296909> Changing the Computer Description should update service...
authorsherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Tue, 13 Oct 2009 19:06:55 +0000 (19:06 +0000)
committersherscher@apple.com <sherscher@apple.com@214c2c4a-bf3b-4dcf-9390-e4dd3010487d>
Tue, 13 Oct 2009 19:06:55 +0000 (19:06 +0000)
git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6735 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

mDNSWindows/SystemService/Service.c

index 08cfd5b..3e0aa27 100644 (file)
@@ -1625,6 +1625,9 @@ mDNSlocal mStatus SetupNotifications()
        err = translate_errno( gDescChangedEvent, (mStatus) GetLastError(), kUnknownErr );
        require_noerr( err, exit );
 
+       err = RegOpenKeyEx( HKEY_LOCAL_MACHINE, TEXT("SYSTEM\\CurrentControlSet\\Services\\lanmanserver\\parameters"), 0, KEY_READ, &gDescKey);
+       check_translated_errno( err == 0, errno_compat(), kNameErr );
+
        if ( gDescKey != NULL )
        {
                err = RegNotifyChangeKeyValue( gDescKey, TRUE, REG_NOTIFY_CHANGE_LAST_SET, gDescChangedEvent, TRUE);