Commit 777a30b9 authored by Alexandre Julliard's avatar Alexandre Julliard

setupapi: Add support for specifying a fake dll source as '-' to delete it.

parent 7acd74ee
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment