# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1649390855 14400 # Node ID 9401d767d9892d238034a1f236d2857c24c3ddf3 # Parent fa7bd08be94461c95ad70e1d9309b9971fab51a1 wtf?? diff -r fa7bd08be944 -r 9401d767d989 src/gui.c --- a/src/gui.c Fri Apr 08 00:04:15 2022 -0400 +++ b/src/gui.c Fri Apr 08 00:07:35 2022 -0400 @@ -37,8 +37,7 @@ enum types { vf, veg -}; -enum types type; +} type; char* file_name = " "; void set_data(unsigned char magic[], uint16_t version, FILE* target) { @@ -216,7 +215,7 @@ if (LOWORD(wParam) == COMBOBOX) version = (int16_t)(8+SendMessage((HWND) lParam, (UINT) CB_GETCURSEL, (WPARAM) 0, (LPARAM) 0)); if (LOWORD(wParam) == LISTBOX) - type = (types)SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); + type = (type)SendMessage((HWND) lParam, (UINT) LB_GETCURSEL, (WPARAM) 0, (LPARAM) 0); } switch(wParam) { case OPEN_FILE_BUTTON: