ddraw: Get rid of get_config_key().
This commit is contained in:
parent
1453baf64b
commit
9ccced6f41
|
@ -818,19 +818,6 @@ DestroyCallback(IDirectDrawSurface7 *surf,
|
|||
return DDENUMRET_OK;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* 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)
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue