summaryrefslogtreecommitdiffstats
path: root/loader/registry.c
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-21 20:13:21 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-21 20:13:21 +0000
commitdfd2b62aa5ee94154125666e7ee568966bba8c57 (patch)
tree2afbebcf8a0cf01ee24da9432102e4a2661c9e3a /loader/registry.c
parent11df85a3dd3bf9f0db534e1d22d55a38996cdd50 (diff)
downloadmpv-dfd2b62aa5ee94154125666e7ee568966bba8c57.tar.bz2
mpv-dfd2b62aa5ee94154125666e7ee568966bba8c57.tar.xz
cygwin support patch by Sascha Sommer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9966 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/registry.c')
-rw-r--r--loader/registry.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/loader/registry.c b/loader/registry.c
index 1fe90e0996..10fb6133f5 100644
--- a/loader/registry.c
+++ b/loader/registry.c
@@ -350,7 +350,7 @@ static reg_handle_t* find_handle_2(long key, const char* subkey)
return t;
}
-long RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey)
+long __stdcall RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int* newkey)
{
char* full_name;
reg_handle_t* t;
@@ -380,7 +380,7 @@ long RegOpenKeyExA(long key, const char* subkey, long reserved, long access, int
return 0;
}
-long RegCloseKey(long key)
+long __stdcall RegCloseKey(long key)
{
reg_handle_t *handle;
if(key==(long)HKEY_LOCAL_MACHINE)
@@ -402,7 +402,7 @@ long RegCloseKey(long key)
return 1;
}
-long RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count)
+long __stdcall RegQueryValueExA(long key, const char* value, int* reserved, int* type, int* data, int* count)
{
struct reg_value* t;
char* c;
@@ -435,7 +435,7 @@ long RegQueryValueExA(long key, const char* value, int* reserved, int* type, int
}
return 0;
}
-long RegCreateKeyExA(long key, const char* name, long reserved,
+long __stdcall RegCreateKeyExA(long key, const char* name, long reserved,
void* classs, long options, long security,
void* sec_attr, int* newkey, int* status)
{
@@ -478,7 +478,7 @@ LONG RegEnumValue(
);
*/
-long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
+long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count)
{
// currenly just made to support MSZH & ZLIB
@@ -502,7 +502,7 @@ long RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count,
return ERROR_NO_MORE_ITEMS;
}
-long RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size)
+long __stdcall RegSetValueExA(long key, const char* name, long v1, long v2, const void* data, long size)
{
struct reg_value* t;
char* c;
@@ -518,7 +518,7 @@ long RegSetValueExA(long key, const char* name, long v1, long v2, const void* da
return 0;
}
-long RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
+long __stdcall RegEnumKeyExA(HKEY hKey, DWORD dwIndex, LPSTR lpName, LPDWORD lpcbName,
LPDWORD lpReserved, LPSTR lpClass, LPDWORD lpcbClass,
LPFILETIME lpftLastWriteTime)
{