ref: 3d3d950a796156fc567da4517ab49c56ad19f120
parent: fee18df7912c307e1dbdb646655dfcbfe98c939f
author: Alex Mayfield <[email protected]>
date: Thu Mar 9 16:07:02 EST 2017
Move bytes_written declaration to top
--- a/midiproc/main.c
+++ b/midiproc/main.c
@@ -146,6 +146,7 @@
{
unsigned int i;
CHAR buffer[2];
+ DWORD bytes_written;
char *filename = Reader_ReadString(reader);
if (filename == NULL)
@@ -161,7 +162,6 @@
buffer[0] = (i >> 8) & 0xff;
buffer[1] = i & 0xff;
- DWORD bytes_written;
WriteFile(midi_process_out, buffer, sizeof(buffer),
&bytes_written, NULL);