Alexandre Julliard : setupapi: Add support for specifying a fake dll source as '-' to delete it.
Alexandre Julliard
julliard at winehq.org
Thu Oct 15 08:54:40 CDT 2009
Module: wine
Branch: master
Commit: 777a30b997abf5ffa4d61893487056ce56b88451
URL: http://source.winehq.org/git/wine.git/?a=commit;h=777a30b997abf5ffa4d61893487056ce56b88451
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Oct 15 14:05:46 2009 +0200
setupapi: Add support for specifying a fake dll source as '-' to delete it.
---
dlls/setupapi/fakedll.c | 8 +++++++-
tools/wine.inf.in | 1 +
2 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dlls/setupapi/fakedll.c b/dlls/setupapi/fakedll.c
index 6397950..3b5a47c 100644
--- a/dlls/setupapi/fakedll.c
+++ b/dlls/setupapi/fakedll.c
@@ -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;
diff --git a/tools/wine.inf.in b/tools/wine.inf.in
index 9f0a2de..6e2df39 100644
--- a/tools/wine.inf.in
+++ b/tools/wine.inf.in
@@ -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
More information about the wine-cvs
mailing list