void b_main_sink(_struct_type my_struct);void _main(){HANDLE data;_struct_type my_struct;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);CloseHandle(data);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){HANDLE data=my_struct.a;CloseHandle(data);}
static void main(){HANDLE data;_struct_type my_struct;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);CloseHandle(data);my_struct.a=data;b_main_sink(my_struct);}void b_main_sink(_struct_type my_struct){HANDLE data=my_struct.a;}