setupapi: Add support for specifying a fake dll source as '-' to delete it.
This commit is contained in:
parent
7acd74ee07
commit
777a30b997
|
@ -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 New Issue