use Path.Combine instead of fixed path separators

This commit is contained in:
Alexander Eckart committed 2012-06-19 17:42:54 +02:00
1 parent 9b50c7e563
commit f5e4cba426
1 file changed
+2 -2
+2 -2
View File
@@ -192,11 +192,11 @@ namespace Vocaluxe
if (arr != null)
{
#if ARCH_X86
Assembly assembly = Assembly.LoadFrom("x86\\" + arr[0] + ".dll");
Assembly assembly = Assembly.LoadFrom(Path.Combine("x86", arr[0] + ".dll"));
#endif
#if ARCH_X64
Assembly assembly = Assembly.LoadFrom("x64\\" + arr[0] + ".dll");
Assembly assembly = Assembly.LoadFrom(Path.Combine("x64", arr[0] + ".dll"));
#endif
return assembly;