minor win32 fixups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23953 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-10-23 15:16:26 +00:00
parent d733696a80
commit 2d387c3dee
6 changed files with 30 additions and 10 deletions

View file

@ -266,10 +266,15 @@ static void clean_up_names(void)
NSDebugLLog(@"NSMessagePort", @"portForName: %@ host: %@", name, host);
if ([host length] && ![host isEqual: @"*"])
if ([host length] > 0)
{
NSDebugLLog(@"NSMessagePort", @"non-local host");
return nil;
[NSException raise: NSInvalidArgumentException
format: @"Attempt to contact a named host using a "
@"message port name server. This name server can only be used "
@"to contact processes owned by the same user on the local host "
@"(host name must be an empty string). To contact processes "
@"owned by other users or on other hosts you must use an instance "
@"of the NSSocketPortNameServer class."];
}
path = [[self class] _pathForName: name];