mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
d733696a80
commit
2d387c3dee
6 changed files with 30 additions and 10 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue