mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[misc] fix multiple VS Code Analysis warnings
This commit is contained in:
parent
97b4e623cd
commit
edcfd43ed5
13 changed files with 48 additions and 23 deletions
|
@ -373,7 +373,14 @@ char* FileDialog(BOOL save, char* path, const ext_t* ext, DWORD options)
|
|||
j = _snprintf(&ext_string[j], ext_strlen-j, "%s (*.*)\r*.*\r", all_files);
|
||||
// Microsoft could really have picked a better delimiter!
|
||||
for (i=0; i<ext_strlen; i++) {
|
||||
// Since the VS Code Analysis tool is dumb...
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(suppress: 6385)
|
||||
#endif
|
||||
if (ext_string[i] == '\r') {
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(suppress: 6386)
|
||||
#endif
|
||||
ext_string[i] = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue