size_t len = strlen(psz_img_name);
if( len >= 3 && !strcmp( psz_img_name + len - 3, "VLC") )
return strdup( psz_img_name );
+
+ /* Do we end by "VLC-Plugin"? oh, we must be the NPAPI plugin */
+ if( len >= 10 && !strcmp( psz_img_name + len - 10, "VLC-Plugin") )
+ return strdup( psz_img_name );
}
/* We are not linked to the VLC.framework, let's use dladdr to figure
uint32_t path_len = sizeof(path) - 1;
if ( !_NSGetExecutablePath(path, &path_len) )
- return strdup(path);
+ return strdup(path);
return NULL;
}