mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	[misc] fix a couple code analysis warnings
This commit is contained in:
		
							parent
							
								
									ce6ded2111
								
							
						
					
					
						commit
						2b0cc9349f
					
				
					 3 changed files with 8 additions and 8 deletions
				
			
		|  | @ -3,7 +3,7 @@ Rufus: The Reliable USB Formatting Utility | ||||||
| 
 | 
 | ||||||
| [](https://ci.appveyor.com/project/pbatard/rufus) | [](https://ci.appveyor.com/project/pbatard/rufus) | ||||||
| [](https://scan.coverity.com/projects/pbatard-rufus) | [](https://scan.coverity.com/projects/pbatard-rufus) | ||||||
| [](https://www.gnu.org/licenses/gpl-3.0.en.html) | [](https://www.gnu.org/licenses/gpl-3.0.en.html) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -184,7 +184,7 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t i_file_length, cons | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		// Check for various files in root (psz_dirname = "")
 | 		// Check for various files in root (psz_dirname = "")
 | ||||||
| 		if (*psz_dirname == 0) { | 		if ((psz_dirname != NULL) && (psz_dirname[0] == 0)) { | ||||||
| 			if (safe_strnicmp(psz_basename, bootmgr_efi_name, safe_strlen(bootmgr_efi_name)-5) == 0) { | 			if (safe_strnicmp(psz_basename, bootmgr_efi_name, safe_strlen(bootmgr_efi_name)-5) == 0) { | ||||||
| 				img_report.has_bootmgr = TRUE; | 				img_report.has_bootmgr = TRUE; | ||||||
| 			} | 			} | ||||||
|  | @ -249,7 +249,7 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t i_file_length, cons | ||||||
| 		return TRUE; | 		return TRUE; | ||||||
| 	} | 	} | ||||||
| 	// In case there's an ldlinux.sys on the ISO, prevent it from overwriting ours
 | 	// In case there's an ldlinux.sys on the ISO, prevent it from overwriting ours
 | ||||||
| 	if ((*psz_dirname == 0) && (safe_strcmp(psz_basename, ldlinux_name) == 0)) { | 	if ((psz_dirname != NULL) && (psz_dirname[0] == 0) && (safe_strcmp(psz_basename, ldlinux_name) == 0)) { | ||||||
| 		uprintf("skipping % file from ISO image\n", ldlinux_name); | 		uprintf("skipping % file from ISO image\n", ldlinux_name); | ||||||
| 		return TRUE; | 		return TRUE; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								src/rufus.rc
									
										
									
									
									
								
							|  | @ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL | ||||||
| IDD_DIALOG DIALOGEX 12, 12, 242, 376 | IDD_DIALOG DIALOGEX 12, 12, 242, 376 | ||||||
| STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | ||||||
| EXSTYLE WS_EX_ACCEPTFILES | EXSTYLE WS_EX_ACCEPTFILES | ||||||
| CAPTION "Rufus 2.11.986" | CAPTION "Rufus 2.11.987" | ||||||
| FONT 8, "Segoe UI Symbol", 400, 0, 0x0 | FONT 8, "Segoe UI Symbol", 400, 0, 0x0 | ||||||
| BEGIN | BEGIN | ||||||
|     LTEXT           "Device",IDS_DEVICE_TXT,9,6,200,8 |     LTEXT           "Device",IDS_DEVICE_TXT,9,6,200,8 | ||||||
|  | @ -320,8 +320,8 @@ END | ||||||
| // | // | ||||||
| 
 | 
 | ||||||
| VS_VERSION_INFO VERSIONINFO | VS_VERSION_INFO VERSIONINFO | ||||||
|  FILEVERSION 2,11,986,0 |  FILEVERSION 2,11,987,0 | ||||||
|  PRODUCTVERSION 2,11,986,0 |  PRODUCTVERSION 2,11,987,0 | ||||||
|  FILEFLAGSMASK 0x3fL |  FILEFLAGSMASK 0x3fL | ||||||
| #ifdef _DEBUG | #ifdef _DEBUG | ||||||
|  FILEFLAGS 0x1L |  FILEFLAGS 0x1L | ||||||
|  | @ -338,13 +338,13 @@ BEGIN | ||||||
|         BEGIN |         BEGIN | ||||||
|             VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" |             VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" | ||||||
|             VALUE "FileDescription", "Rufus" |             VALUE "FileDescription", "Rufus" | ||||||
|             VALUE "FileVersion", "2.11.986" |             VALUE "FileVersion", "2.11.987" | ||||||
|             VALUE "InternalName", "Rufus" |             VALUE "InternalName", "Rufus" | ||||||
|             VALUE "LegalCopyright", "© 2011-2016 Pete Batard (GPL v3)" |             VALUE "LegalCopyright", "© 2011-2016 Pete Batard (GPL v3)" | ||||||
|             VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" |             VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" | ||||||
|             VALUE "OriginalFilename", "rufus.exe" |             VALUE "OriginalFilename", "rufus.exe" | ||||||
|             VALUE "ProductName", "Rufus" |             VALUE "ProductName", "Rufus" | ||||||
|             VALUE "ProductVersion", "2.11.986" |             VALUE "ProductVersion", "2.11.987" | ||||||
|         END |         END | ||||||
|     END |     END | ||||||
|     BLOCK "VarFileInfo" |     BLOCK "VarFileInfo" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue