mirror of
https://github.com/wine-mirror/wine
synced 2024-07-09 04:16:08 +00:00
avrt: Fix HeapAlloc call in AvSetMmThreadCharacteristicsA.
This commit is contained in:
parent
9e73769112
commit
456ad1b1cf
|
@ -55,7 +55,7 @@ HANDLE WINAPI AvSetMmThreadCharacteristicsA(LPCSTR TaskName, LPDWORD TaskIndex)
|
||||||
if (TaskName)
|
if (TaskName)
|
||||||
{
|
{
|
||||||
DWORD len = (lstrlenA(TaskName)+1);
|
DWORD len = (lstrlenA(TaskName)+1);
|
||||||
str = HeapAlloc(GetProcessHeap, 0, len*sizeof(WCHAR));
|
str = HeapAlloc(GetProcessHeap(), 0, len*sizeof(WCHAR));
|
||||||
if (!str)
|
if (!str)
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_OUTOFMEMORY);
|
SetLastError(ERROR_OUTOFMEMORY);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user