static void main_sink(HANDLE data){if (data!=INVALID_HANDLE_VALUE){CLOSE((int)data);}}void _main(){HANDLE data;void (*func_ptr) (HANDLE)=main_sink;data=INVALID_HANDLE_VALUE;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);func_ptr(data);}
static void main_sink(HANDLE data){if (data!=INVALID_HANDLE_VALUE){CloseHandle(data);}}static void main(){HANDLE data;void (*func_ptr) (HANDLE)=main_sink;data=INVALID_HANDLE_VALUE;data=CreateFile("BadSource_w32CreateFile.txt", (GENERIC_WRITE|GENERIC_READ), 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);func_ptr(data);}