Make it look up the list by GUID

git-svn-id: https://svn.apache.org/repos/asf/manifoldcf/integration/sharepoint-2010/trunk@1380807 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webservice/MCPermissions.cs b/webservice/MCPermissions.cs
index a28cda1..d0eb9f0 100644
--- a/webservice/MCPermissions.cs
+++ b/webservice/MCPermissions.cs
@@ -103,7 +103,7 @@
                         {

 

                             oWebsiteRoot.Lists.IncludeRootFolder = true;

-                            SPList oList = oWebsiteRoot.Lists[listName];

+                            SPList oList = oWebsiteRoot.Lists[new Guid(listName)];

 

                             SPQuery listQuery = new SPQuery();

                             listQuery.QueryThrottleMode = SPQueryThrottleOption.Override;