@@ -40,11 +40,11 @@ return dlopen([path cStringWithEncoding: [OFLocale encoding]], flags); #else if (path == nil) return GetModuleHandle(NULL); - return LoadLibraryW([path UTF16String]); + return LoadLibraryW(path.UTF16String); #endif } void * of_dlsym(of_plugin_handle_t handle, const char *symbol) @@ -85,14 +85,14 @@ init_plugin_t initPlugin; OFPlugin *plugin; #if defined(OF_MACOS) path = [path stringByAppendingFormat: @".bundle/Contents/MacOS/%@", - [path lastPathComponent]]; + path.lastPathComponent]; #elif defined(OF_IOS) path = [path stringByAppendingFormat: @".bundle/%@", - [path lastPathComponent]]; + path.lastPathComponent]; #else path = [path stringByAppendingString: @PLUGIN_SUFFIX]; #endif if ((handle = of_dlopen(path, OF_RTLD_LAZY)) == NULL)