# HG changeset patch # User Paper <37962225+mrpapersonic@users.noreply.github.com> # Date 1658160225 14400 # Node ID 0d62f49c1948857a3b75edfe49072c719a61f73d # Parent dbed5f51d635a5b154f76e894b0c4df5fd437a2e Update gui.c diff -r dbed5f51d635 -r 0d62f49c1948 src/gui.c --- a/src/gui.c Sun May 22 04:39:07 2022 -0400 +++ b/src/gui.c Mon Jul 18 12:03:45 2022 -0400 @@ -49,6 +49,7 @@ void display_file(char* path) { /* Read the file to memory */ + /* eventually this will contain code to show the version and type */ FILE* file; file = fopen(path, "rb"); fseek(file, 0, SEEK_END); @@ -110,6 +111,7 @@ if (CopyFile((TCHAR*)input_file, (TCHAR*)output_file, 0) == 0) { MessageBox(hWnd, TEXT("Failed to copy original project file! Does the destination file already exist?"), TEXT("Saving project failed!"), MB_ICONEXCLAMATION); + return; } FILE* output = fopen(output_file, "r+b"); if (output == NULL) { @@ -188,9 +190,7 @@ switch(wParam) { case OPEN_FILE_BUTTON: file_name = open_file(hWnd); - break; case COMBOBOX: - break; /* NOTE: remove these 4 lines if we don't end up doing anything with them */ case LISTBOX: break; case SAVE_FILE_BUTTON: