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