mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-31 06:48:26 -04:00
[misc] fix a warning in msapi_utf8.h
Also set the AppStore default codepage to UTF-8
This commit is contained in:
parent
bb291df342
commit
1f4a2aaf30
3 changed files with 16 additions and 7 deletions
|
@ -578,6 +578,10 @@ static __inline DWORD GetCurrentDirectoryU(DWORD nBufferLength, char* lpBuffer)
|
|||
DWORD i, ret = 0, err = ERROR_INVALID_DATA;
|
||||
// coverity[returned_null]
|
||||
walloc(lpBuffer, nBufferLength);
|
||||
if (wlpBuffer == NULL) {
|
||||
SetLastError(ERROR_OUTOFMEMORY);
|
||||
return 0;
|
||||
}
|
||||
ret = GetModuleFileNameW(NULL, wlpBuffer, nBufferLength);
|
||||
err = GetLastError();
|
||||
if (ret > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue