changeset 25:eb15d8595e8c

moar backports!
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Thu, 07 Apr 2022 19:46:17 -0400
parents 348a4a4beb17
children 0d19cff70e93
files src/gui.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/gui.c	Thu Apr 07 19:32:19 2022 -0400
+++ b/src/gui.c	Thu Apr 07 19:46:17 2022 -0400
@@ -128,7 +128,7 @@
 	ofn.lpstrFile[0] = '\0';
 	ofn.nMaxFile = 256;
 	ofn.lpstrFilter = "Movie Studio project files\0*.vf\0VEGAS Pro project files\0*.veg\0All files\0*.*\0";
-	ofn.nFilterIndex = type+1;
+	ofn.nFilterIndex = (int)type+1;
 
 	GetSaveFileName(&ofn);
 
@@ -139,17 +139,19 @@
 		return;
 	}
 
-	switch (type) {
-		case vf:
+	switch ((int)type) {
+		case vf: {
 			unsigned char magic[] = {0xEF, 0x29, 0xC4, 0x46, 0x4A, 0x90, 0xD2, 0x11, 
 									 0x87, 0x22, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A};
 			set_data(magic, version, output);
 			break;
-		default:
+		}
+		default: {
 			unsigned char magic[] = {0xF6, 0x1B, 0x3C, 0x53, 0x35, 0xD6, 0xF3, 0x43, 
 									 0x8A, 0x90, 0x64, 0xB8, 0x87, 0x23, 0x1F, 0x7F};
 			set_data(magic, version, output);
 			break;
+		}
 	}
 
 	fclose(output);