From 3ed447174447e7d423f28dddb9244a2465ed28b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 20 Jul 2004 16:51:07 +0000 Subject: [PATCH] user-auth-cell-20040720 remember to return the authentication cell name if found --- src/WINNT/client_creds/creds.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/client_creds/creds.cpp b/src/WINNT/client_creds/creds.cpp index f8b58ae17..ff568ca18 100644 --- a/src/WINNT/client_creds/creds.cpp +++ b/src/WINNT/client_creds/creds.cpp @@ -459,11 +459,12 @@ int GetDefaultCell (LPTSTR pszCell) } if (szCellA[0] == '\0') { - if ((rc = cm_GetRootCellName (szCellA)) == 0) - CopyAnsiToString (pszCell, szCellA); + rc = cm_GetRootCellName (szCellA); } else { rc = 0; } + if (rc == 0) + CopyAnsiToString(pszCell, szCellA); } return rc; } -- 2.39.5