* security.cc (get_logon_server): Use strcasematch rather than strcasecmp.
This commit is contained in:
parent
4863867ab9
commit
5f74ae83e5
|
@ -1,3 +1,8 @@
|
|||
2002-06-13 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* security.cc (get_logon_server): Use strcasematch rather than
|
||||
strcasecmp.
|
||||
|
||||
2002-06-12 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* path.cc (chdir): Minor cleanup.
|
||||
|
|
|
@ -263,8 +263,8 @@ get_logon_server (const char * domain, char * server, WCHAR *wserver)
|
|||
WCHAR * buf;
|
||||
DWORD size = INTERNET_MAX_HOST_NAME_LENGTH + 1;
|
||||
|
||||
if ((GetComputerNameA(server + 2, &size)) &&
|
||||
!strcasecmp(domain, server + 2))
|
||||
if ((GetComputerName (server + 2, &size)) &&
|
||||
strcasematch (domain, server + 2))
|
||||
{
|
||||
server[0] = server[1] = '\\';
|
||||
if (wserver)
|
||||
|
|
Loading…
Reference in New Issue