diff --git a/OpenMetaverse/Helpers.cs b/OpenMetaverse/Helpers.cs index 5eeb1bb9..03de40b2 100644 --- a/OpenMetaverse/Helpers.cs +++ b/OpenMetaverse/Helpers.cs @@ -457,15 +457,15 @@ namespace OpenMetaverse public static System.IO.Stream GetResourceStream(string resourceName, string searchPath) { if (searchPath != null) - { - Assembly gea = Assembly.GetEntryAssembly(); - if (gea == null) gea = typeof (Helpers).Assembly; - string dirname = "."; - if (gea != null && gea.Location != null) - { - dirname = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(gea.Location), searchPath); - } - + { + Assembly gea = Assembly.GetEntryAssembly(); + if (gea == null) gea = typeof (Helpers).Assembly; + string dirname = "."; + if (gea != null && gea.Location != null) + { + dirname = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(gea.Location), searchPath); + } + string filename = System.IO.Path.Combine(dirname, resourceName); try {