Mercurial > msvpvf
changeset 56:0d62f49c1948
Update gui.c
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Mon, 18 Jul 2022 12:03:45 -0400 |
parents | dbed5f51d635 |
children | 01c605e78f48 |
files | src/gui.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: