mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
[KERNEL32]
* Free the buffer using RtlFreeHeap(). Spotted by Sergei Abramov. CORE-7834 #resolve #comment Committed a proper fix in r61937. Cheers ! svn path=/trunk/; revision=61937
This commit is contained in:
parent
175aa88d04
commit
9d2571d384
|
@ -668,7 +668,7 @@ FindNextVolumeA(IN HANDLE handle,
|
||||||
if (!WideCharToMultiByte( CP_ACP, 0, buffer, -1, volume, len, NULL, NULL )) ret = FALSE;
|
if (!WideCharToMultiByte( CP_ACP, 0, buffer, -1, volume, len, NULL, NULL )) ret = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
HeapFree( GetProcessHeap(), 0, buffer );
|
RtlFreeHeap(RtlGetProcessHeap(), 0, buffer);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue