Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.55 KB | None | 0 0
  1. diff --git a/mingw-w64-tools/widl/src/typetree.h b/mingw-w64-tools/widl/src/typetree.h
  2. index 8ba348b..180444d 100644
  3. --- a/mingw-w64-tools/widl/src/typetree.h
  4. +++ b/mingw-w64-tools/widl/src/typetree.h
  5. @@ -115,7 +115,9 @@ static inline var_list_t *type_enum_get_values(const type_t *type)
  6.  {
  7.      type = type_get_real_type(type);
  8.      assert(type_get_type(type) == TYPE_ENUM);
  9. +    if (type->details.enumeration)
  10.      return type->details.enumeration->enums;
  11. +    return NULL;
  12.  }
  13.  
  14.  static inline var_t *type_union_get_switch_value(const type_t *type)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement