remote items test
[carveJwlIkooP6JGAAIwe30JlM.git] / addon.c
diff --git a/addon.c b/addon.c
index c387edd6379a7f29cb893e15045e2a0e06bd5fb9..4ac9f91bc1443fc096b0e2d59329fe133051c3df 100644 (file)
--- a/addon.c
+++ b/addon.c
@@ -718,7 +718,7 @@ static u16 addon_cache_create_viewer( enum addon_type type, u16 reg_id ){
 static u16 addon_cache_create_viewer_from_uid( enum addon_type type,
                                                char uid[ADDON_UID_MAX] ){
    addon_alias q;
-   addon_uid_to_alias( uid, &q );
+   if( !addon_uid_to_alias( uid, &q ) ) return 0;
    if( q.type != type ) return 0;
 
    u32 reg_id = addon_match( &q );