mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
setupapi: Add support for specifying a fake dll source as '-' to delete it.
This commit is contained in:
parent
7acd74ee07
commit
777a30b997
2 changed files with 8 additions and 1 deletions
|
@ -597,7 +597,13 @@ BOOL create_fake_dll( const WCHAR *name, const WCHAR *source )
|
|||
if (!(h = create_dest_file( name ))) return TRUE; /* not a fake dll */
|
||||
if (h == INVALID_HANDLE_VALUE) return FALSE;
|
||||
|
||||
if ((buffer = load_fake_dll( source, &size )))
|
||||
if (source[0] == '-' && !source[1])
|
||||
{
|
||||
/* '-' source means delete the file */
|
||||
TRACE( "deleting %s\n", debugstr_w(name) );
|
||||
ret = FALSE;
|
||||
}
|
||||
else if ((buffer = load_fake_dll( source, &size )))
|
||||
{
|
||||
DWORD written;
|
||||
|
||||
|
|
|
@ -2455,6 +2455,7 @@ HKLM,%CurrentVersion%\Telephony\Country List\998,"SameAreaRule",,"G"
|
|||
11,,dosx.exe
|
||||
11,,dsound.vxd
|
||||
11,,notepad.exe
|
||||
11,,winetest.exe,-
|
||||
11,,winhlp32.exe
|
||||
12,,mountmgr.sys
|
||||
16422,Internet Explorer,iexplore.exe
|
||||
|
|
Loading…
Reference in a new issue