Another Windows bustage fix from bug 422800 and fix tabs to spaces

git-svn-id: svn://10.0.0.236/trunk@248829 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bugzilla%standard8.plus.com 2008-03-29 20:40:56 +00:00
parent 8382ae06ff
commit 4d0026df9b

View File

@ -185,12 +185,13 @@ nsresult nsAbPalmHotSync::GetABInterface()
// Check each valid addrbook.
nsCOMPtr<nsISupports> item;
nsCOMPtr<nsIAbDirectory> directory;
PRBool hasMore;
while (NS_SUCCEEDED(rv = subDirectories->HasMoreElements(&hasMore)) && hasMore)
{
if (NS_SUCCEEDED(subDirectories->GetNext(getter_AddRefs(item))))
{
nsCOMPtr<nsIAbDirectory> directory(do_QueryInterface(item, &rv));
directory = do_QueryInterface(item, &rv);
if (NS_SUCCEEDED(rv))
{
// TODO: may need to skip mailing list?? but maybe not since there's no mailing list on the top level.