@@ -400,11 +400,11 @@ int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned cha
400400 collection_node_idx = coll_child_order [collection_node_idx ][0 ];
401401
402402 // In a HID Report Descriptor, the first usage declared is the most preferred usage for the control.
403- // While the order in the WIN32 capabiliy strutures is the opposite:
403+ // While the order in the WIN32 capabiliy structures is the opposite:
404404 // Here the preferred usage is the last aliased usage in the sequence.
405405
406406 if (link_collection_nodes [collection_node_idx ].IsAlias && (firstDelimiterNode == NULL )) {
407- // Alliased Collection (First node in link_collection_nodes -> Last entry in report descriptor output)
407+ // Aliased Collection (First node in link_collection_nodes -> Last entry in report descriptor output)
408408 firstDelimiterNode = main_item_list ;
409409 coll_begin_lookup [collection_node_idx ] = rd_append_main_item_node (0 , 0 , rd_item_node_collection , 0 , collection_node_idx , rd_delimiter_usage , 0 , & main_item_list );
410410 coll_begin_lookup [collection_node_idx ] = rd_append_main_item_node (0 , 0 , rd_item_node_collection , 0 , collection_node_idx , rd_delimiter_close , 0 , & main_item_list );
@@ -430,7 +430,7 @@ int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned cha
430430 collection_node_idx = coll_child_order [collection_node_idx ][nextChild ];
431431
432432 if (link_collection_nodes [collection_node_idx ].IsAlias && (firstDelimiterNode == NULL )) {
433- // Alliased Collection (First node in link_collection_nodes -> Last entry in report descriptor output)
433+ // Aliased Collection (First node in link_collection_nodes -> Last entry in report descriptor output)
434434 firstDelimiterNode = main_item_list ;
435435 coll_begin_lookup [collection_node_idx ] = rd_append_main_item_node (0 , 0 , rd_item_node_collection , 0 , collection_node_idx , rd_delimiter_usage , 0 , & main_item_list );
436436 coll_begin_lookup [collection_node_idx ] = rd_append_main_item_node (0 , 0 , rd_item_node_collection , 0 , collection_node_idx , rd_delimiter_close , 0 , & main_item_list );
@@ -490,11 +490,11 @@ int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned cha
490490 list_node = rd_search_main_item_list_for_bit_position (first_bit , (rd_main_items ) rt_idx , pp_data -> caps [caps_idx ].ReportID , & coll_begin );
491491
492492 // In a HID Report Descriptor, the first usage declared is the most preferred usage for the control.
493- // While the order in the WIN32 capabiliy strutures is the opposite:
493+ // While the order in the WIN32 capabiliy structures is the opposite:
494494 // Here the preferred usage is the last aliased usage in the sequence.
495495
496496 if (pp_data -> caps [caps_idx ].IsAlias && (firstDelimiterNode == NULL )) {
497- // Alliased Usage (First node in pp_data->caps -> Last entry in report descriptor output)
497+ // Aliased Usage (First node in pp_data->caps -> Last entry in report descriptor output)
498498 firstDelimiterNode = list_node ;
499499 rd_insert_main_item_node (first_bit , last_bit , rd_item_node_cap , caps_idx , pp_data -> caps [caps_idx ].LinkCollection , rd_delimiter_usage , pp_data -> caps [caps_idx ].ReportID , & list_node );
500500 rd_insert_main_item_node (first_bit , last_bit , rd_item_node_cap , caps_idx , pp_data -> caps [caps_idx ].LinkCollection , rd_delimiter_close , pp_data -> caps [caps_idx ].ReportID , & list_node );
@@ -503,7 +503,7 @@ int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned cha
503503 rd_insert_main_item_node (first_bit , last_bit , rd_item_node_cap , caps_idx , pp_data -> caps [caps_idx ].LinkCollection , rd_delimiter_usage , pp_data -> caps [caps_idx ].ReportID , & list_node );
504504 }
505505 else if (!pp_data -> caps [caps_idx ].IsAlias && (firstDelimiterNode != NULL )) {
506- // Alliased Collection (Last node in pp_data->caps -> First entry in report descriptor output)
506+ // Aliased Collection (Last node in pp_data->caps -> First entry in report descriptor output)
507507 rd_insert_main_item_node (first_bit , last_bit , rd_item_node_cap , caps_idx , pp_data -> caps [caps_idx ].LinkCollection , rd_delimiter_usage , pp_data -> caps [caps_idx ].ReportID , & list_node );
508508 rd_insert_main_item_node (first_bit , last_bit , rd_item_node_cap , caps_idx , pp_data -> caps [caps_idx ].LinkCollection , rd_delimiter_open , pp_data -> caps [caps_idx ].ReportID , & list_node );
509509 firstDelimiterNode = NULL ;
@@ -561,7 +561,7 @@ int hid_winapi_descriptor_reconstruct_pp_data(void *preparsed_data, unsigned cha
561561 }
562562 }
563563 if (list -> next -> MainItemType == rd_collection_end ) {
564- // Store the node before the collection end - the last occurence is the end of the top level collection
564+ // Store the node before the collection end - the last occurrence is the end of the top level collection
565565 node_before_top_level_coll_end = list ;
566566 }
567567 list = list -> next ;
0 commit comments