Henri Verbeet : ddraw: Get rid of get_config_key().

Alexandre Julliard julliard at winehq.org
Wed Sep 11 16:01:45 CDT 2013


Module: wine
Branch: master
Commit: 9ccced6f411e69cf1e68a52955fc94d31c272931
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9ccced6f411e69cf1e68a52955fc94d31c272931

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Sep 11 08:47:50 2013 +0200

ddraw: Get rid of get_config_key().

---

 dlls/ddraw/main.c |   13 -------------
 1 files changed, 0 insertions(+), 13 deletions(-)

diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c
index 8e7b098..61b2586 100644
--- a/dlls/ddraw/main.c
+++ b/dlls/ddraw/main.c
@@ -819,19 +819,6 @@ DestroyCallback(IDirectDrawSurface7 *surf,
 }
 
 /***********************************************************************
- * get_config_key
- *
- * Reads a config key from the registry. Taken from WineD3D
- *
- ***********************************************************************/
-static inline DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, char* buffer, DWORD size)
-{
-    if (0 != appkey && !RegQueryValueExA( appkey, name, 0, NULL, (LPBYTE) buffer, &size )) return 0;
-    if (0 != defkey && !RegQueryValueExA( defkey, name, 0, NULL, (LPBYTE) buffer, &size )) return 0;
-    return ERROR_FILE_NOT_FOUND;
-}
-
-/***********************************************************************
  * DllMain (DDRAW.0)
  *
  * Could be used to register DirectDraw drivers, if we have more than




More information about the wine-cvs mailing list