mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[misc] fix Coverity warnings
* What would be nicer was if half these Coverity issues weren't false positives... * Also update Readme and fix progress bar colour not being reset after error
This commit is contained in:
parent
6252636aff
commit
efd6d9f345
5 changed files with 18 additions and 12 deletions
|
@ -2519,6 +2519,7 @@ static INT_PTR CALLBACK MainCallback(HWND hDlg, UINT message, WPARAM wParam, LPA
|
|||
|
||||
case UM_PROGRESS_INIT:
|
||||
isMarquee = (wParam == PBS_MARQUEE);
|
||||
SendMessage(hProgress, PBM_SETSTATE, (WPARAM)PBST_NORMAL, 0);
|
||||
if (isMarquee)
|
||||
SendMessage(hProgress, PBM_SETMARQUEE, TRUE, 0);
|
||||
else
|
||||
|
@ -2847,6 +2848,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
pfSetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32);
|
||||
|
||||
uprintf("*** " APPLICATION_NAME " init ***\n");
|
||||
// coverity[pointless_string_compare]
|
||||
is_x86_32 = (strcmp(APPLICATION_ARCH, "x86") == 0);
|
||||
|
||||
// We have to process the arguments before we acquire the lock and process the locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue