Rémi Bernon (@rbernon) commented about tools/widl/metadata.c:
- UINT header_size;
- const BYTE *data;
+} +streams[] = +{
- { 0, 0, "#~", 12 },
- { 0, 0, "#Strings", 20 },
- { 0, 0, "#US", 12 },
- { 0, 0, "#GUID", 16 },
- { 0, 0, "#Blob", 16 }
+};
+static void write_data( FILE *file, const void *buf, size_t size ) +{
- fwrite( buf, size, 1, file );
+}
There's `put_data` in tools.h which should probably be used, saving the need to pass a FILE param around, and `flush_output_buffer` to write the data to the output file.