Changeset 5501:fc2e83547f0d in roaraudio for include


Ignore:
Timestamp:
05/15/12 13:26:05 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

ROAR_DL_PLUGIN_START() now checks para structure (Closes: #236)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/roardl.h

    r5453 r5501  
    8787                                     if ( _inited )                                               \ 
    8888                                      return &lib;                                                \ 
     89                                     if ( para != NULL &&                                         \ 
     90                                          (para->version != ROAR_DL_LIBPARA_VERSION ||            \ 
     91                                           para->len < sizeof(struct roar_dl_librarypara)) ) {    \ 
     92                                      roar_err_set(ROAR_ERROR_NSVERSION);                         \ 
     93                                      return NULL;                                                \ 
     94                                     }                                                            \ 
    8995                                     memset(&lib, 0, sizeof(lib));                                \ 
    9096                                     lib.version = ROAR_DL_LIBINST_VERSION;                       \ 
Note: See TracChangeset for help on using the changeset viewer.