mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 06:48:26 -04:00
[core] fix default listing of large SanDisk SSD devices
* Closes #2164 * Also add breakdown of score computation when device enumeration debug is active * Also fix a minor Code Analysis warning in msapi_utf8.h
This commit is contained in:
parent
3281f6b97e
commit
b163b3dfe2
6 changed files with 51 additions and 25 deletions
|
@ -6,7 +6,7 @@
|
|||
*
|
||||
* See also: https://utf8everywhere.org
|
||||
*
|
||||
* Copyright © 2010-2022 Pete Batard <pete@akeo.ie>
|
||||
* Copyright © 2010-2023 Pete Batard <pete@akeo.ie>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -359,7 +359,8 @@ static __inline int GetWindowTextU(HWND hWnd, char* lpString, int nMaxCount)
|
|||
err = GetLastError();
|
||||
}
|
||||
wfree(lpString);
|
||||
lpString[nMaxCount - 1] = 0;
|
||||
if (lpString != NULL)
|
||||
lpString[nMaxCount - 1] = 0;
|
||||
SetLastError(err);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue