mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 09:25:06 +00:00
mountmgr.sys: Free wine_get_dos_file_name memory with HeapFree.
This commit is contained in:
parent
a0a4c2fb3f
commit
2d4b588afc
|
@ -895,7 +895,7 @@ static BOOL get_volume_device_info( struct volume *volume )
|
||||||
}
|
}
|
||||||
handle = CreateFileW( name, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_WRITE,
|
handle = CreateFileW( name, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
NULL, OPEN_EXISTING, 0, 0 );
|
NULL, OPEN_EXISTING, 0, 0 );
|
||||||
RtlFreeHeap( GetProcessHeap(), 0, name );
|
HeapFree( GetProcessHeap(), 0, name );
|
||||||
if (handle == INVALID_HANDLE_VALUE)
|
if (handle == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
WARN("Failed to open %s, err %lu\n", debugstr_a(unix_device), GetLastError());
|
WARN("Failed to open %s, err %lu\n", debugstr_a(unix_device), GetLastError());
|
||||||
|
|
Loading…
Reference in a new issue