summaryrefslogtreecommitdiffstats
path: root/loader/registry.c
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-18 01:01:03 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-18 01:01:03 +0000
commitd71e31d0f702ebf8f872694f6e0f5d579c8378d3 (patch)
treeb8a816661c678a08769b45d34b394b1b5d04f134 /loader/registry.c
parent52d76c5f328bdb0268d266b21f91aac571b443f6 (diff)
downloadmpv-d71e31d0f702ebf8f872694f6e0f5d579c8378d3.tar.bz2
mpv-d71e31d0f702ebf8f872694f6e0f5d579c8378d3.tar.xz
DLL loader updated from avifile-0.60beta4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@129 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/registry.c')
-rw-r--r--loader/registry.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/loader/registry.c b/loader/registry.c
index a8dfaa0e03..d049cbdf7f 100644
--- a/loader/registry.c
+++ b/loader/registry.c
@@ -11,7 +11,8 @@
#include <wine/winerror.h>
#include <registry.h>
-
+//#undef TRACE
+//#define TRACE printf
struct reg_value
{
int type;
@@ -147,7 +148,6 @@ static void save_registry()
static reg_handle_t* find_handle_by_name(const char* name)
{
reg_handle_t* t;
-// printf("REGISTRY: find_handle_by_name(%s)\n",name);
for(t=head; t; t=t->prev)
{
if(!strcmp(t->name, name))
@@ -160,7 +160,6 @@ static reg_handle_t* find_handle_by_name(const char* name)
static struct reg_value* find_value_by_name(const char* name)
{
int i;
-// printf("REGISTRY: find_value_by_name(%s)\n",name);
for(i=0; i<reg_size; i++)
if(!strcmp(regs[i].name, name))
return regs+i;
@@ -169,7 +168,6 @@ static struct reg_value* find_value_by_name(const char* name)
static reg_handle_t* find_handle(int handle)
{
reg_handle_t* t;
-// printf("REGISTRY: find_handle(%d)\n",handle);
for(t=head; t; t=t->prev)
{
if(t->handle==handle)
@@ -263,7 +261,7 @@ struct reg_value* insert_reg_value(int handle, const char* name, int type, const
static void init_registry()
{
-// printf("Initializing registry\n");
+ printf("Initializing registry\n");
open_registry();
insert_handle(HKEY_LOCAL_MACHINE, "HKLM");
insert_handle(HKEY_CURRENT_USER, "HKCU");
@@ -393,11 +391,11 @@ long RegCreateKeyExA(long key, const char* name, long reserved,
{
int qw=45708;
v=insert_reg_value(key, name, DIR, &qw, 4);
- *status=REG_CREATED_NEW_KEY;
+ if (status) *status=REG_CREATED_NEW_KEY;
// return 0;
}
else
- *status=REG_OPENED_EXISTING_KEY;
+ if (status) *status=REG_OPENED_EXISTING_KEY;
t=insert_handle(generate_handle(), fullname);
*newkey=t->handle;