Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d7b9a23a
Commit
d7b9a23a
authored
Jul 06, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Jul 06, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.0 -Wpointer-sign fixes (Reg* functions).
parent
fb469829
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
81 additions
and
80 deletions
+81
-80
crypt.c
dlls/advapi32/crypt.c
+5
-5
service.c
dlls/advapi32/service.c
+4
-4
registry.c
dlls/advapi32/tests/registry.c
+11
-11
d3d8_main.c
dlls/d3d8/d3d8_main.c
+2
-2
msvideo16.c
dlls/msvideo/msvideo16.c
+1
-1
tmarshal.c
dlls/oleaut32/tmarshal.c
+4
-3
typelib16.c
dlls/oleaut32/typelib16.c
+1
-1
wgl.c
dlls/opengl32/wgl.c
+1
-1
setupx_main.c
dlls/setupapi/setupx_main.c
+1
-1
classes.c
dlls/shell32/classes.c
+2
-2
dialogs.c
dlls/shell32/dialogs.c
+5
-5
sysparams.c
dlls/user/tests/sysparams.c
+4
-4
aspi.c
dlls/winaspi/aspi.c
+2
-2
winaspi16.c
dlls/winaspi/winaspi16.c
+1
-1
init.c
dlls/wineps/init.c
+1
-1
x11drv_main.c
dlls/x11drv/x11drv_main.c
+2
-2
xfont.c
dlls/x11drv/xfont.c
+6
-6
registry.c
programs/wineconsole/registry.c
+28
-28
No files found.
dlls/advapi32/crypt.c
View file @
d7b9a23a
...
...
@@ -326,7 +326,7 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
goto
error
;
}
r
=
RegQueryValueExA
(
key
,
"Name"
,
NULL
,
NULL
,
provname
,
&
len
);
r
=
RegQueryValueExA
(
key
,
"Name"
,
NULL
,
NULL
,
(
LPBYTE
)
provname
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"error %ld reading 'Name' from registry
\n
"
,
r
);
...
...
@@ -380,7 +380,7 @@ BOOL WINAPI CryptAcquireContextA (HCRYPTPROV *phProv, LPCSTR pszContainer,
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
goto
error
;
}
r
=
RegQueryValueExA
(
key
,
"Image Path"
,
NULL
,
NULL
,
temp
,
&
len
);
r
=
RegQueryValueExA
(
key
,
"Image Path"
,
NULL
,
NULL
,
(
LPBYTE
)
temp
,
&
len
);
if
(
r
!=
ERROR_SUCCESS
)
{
TRACE
(
"error %ld reading 'Image Path' from registry
\n
"
,
r
);
...
...
@@ -1097,7 +1097,7 @@ BOOL WINAPI CryptEnumProviderTypesA (DWORD dwIndex, DWORD *pdwReserved,
*
pdwProvType
+=
(
*
(
--
ch
)
-
'0'
)
*
100
;
CRYPT_Free
(
keyname
);
result
=
RegQueryValueExA
(
hSubkey
,
"TypeName"
,
NULL
,
&
dwType
,
pszTypeName
,
pcbTypeName
);
result
=
RegQueryValueExA
(
hSubkey
,
"TypeName"
,
NULL
,
&
dwType
,
(
LPBYTE
)
pszTypeName
,
pcbTypeName
);
if
(
result
)
CRYPT_ReturnLastError
(
result
);
...
...
@@ -1254,7 +1254,7 @@ BOOL WINAPI CryptGetDefaultProviderA (DWORD dwProvType, DWORD *pdwReserved,
}
CRYPT_Free
(
keyname
);
result
=
RegQueryValueExA
(
hKey
,
"Name"
,
NULL
,
NULL
,
pszProvName
,
pcbProvName
);
result
=
RegQueryValueExA
(
hKey
,
"Name"
,
NULL
,
NULL
,
(
LPBYTE
)
pszProvName
,
pcbProvName
);
if
(
result
)
{
if
(
result
!=
ERROR_MORE_DATA
)
...
...
@@ -1754,7 +1754,7 @@ BOOL WINAPI CryptSetProviderExA (LPCSTR pszProvName, DWORD dwProvType, DWORD *pd
}
CRYPT_Free
(
keyname
);
if
(
RegSetValueExA
(
hTypeKey
,
"Name"
,
0
,
REG_SZ
,
pszProvName
,
strlen
(
pszProvName
)
+
1
))
if
(
RegSetValueExA
(
hTypeKey
,
"Name"
,
0
,
REG_SZ
,
(
LPBYTE
)
pszProvName
,
strlen
(
pszProvName
)
+
1
))
{
RegCloseKey
(
hTypeKey
);
RegCloseKey
(
hProvKey
);
...
...
dlls/advapi32/service.c
View file @
d7b9a23a
...
...
@@ -1654,7 +1654,7 @@ QueryServiceConfigA( SC_HANDLE hService,
total
=
sizeof
(
QUERY_SERVICE_CONFIGA
);
sz
=
sizeof
(
str_buffer
);
r
=
RegQueryValueExA
(
hKey
,
szImagePath
,
0
,
&
type
,
str_buffer
,
&
sz
);
r
=
RegQueryValueExA
(
hKey
,
szImagePath
,
0
,
&
type
,
(
LPBYTE
)
str_buffer
,
&
sz
);
if
(
(
r
==
ERROR_SUCCESS
)
&&
(
type
==
REG_SZ
||
type
==
REG_EXPAND_SZ
)
)
{
sz
=
ExpandEnvironmentStringsA
(
str_buffer
,
NULL
,
0
);
...
...
@@ -1719,7 +1719,7 @@ QueryServiceConfigA( SC_HANDLE hService,
n
=
total
-
sizeof
(
QUERY_SERVICE_CONFIGA
);
sz
=
sizeof
(
str_buffer
);
r
=
RegQueryValueExA
(
hKey
,
szImagePath
,
0
,
&
type
,
str_buffer
,
&
sz
);
r
=
RegQueryValueExA
(
hKey
,
szImagePath
,
0
,
&
type
,
(
LPBYTE
)
str_buffer
,
&
sz
);
if
(
(
r
==
ERROR_SUCCESS
)
&&
(
type
==
REG_SZ
||
type
==
REG_EXPAND_SZ
)
)
{
sz
=
ExpandEnvironmentStringsA
(
str_buffer
,
p
,
n
);
...
...
@@ -1736,7 +1736,7 @@ QueryServiceConfigA( SC_HANDLE hService,
}
sz
=
n
;
r
=
RegQueryValueExA
(
hKey
,
szGroup
,
0
,
&
type
,
p
,
&
sz
);
r
=
RegQueryValueExA
(
hKey
,
szGroup
,
0
,
&
type
,
(
LPBYTE
)
p
,
&
sz
);
if
(
(
r
==
ERROR_SUCCESS
)
||
(
type
==
REG_SZ
)
)
{
lpServiceConfig
->
lpLoadOrderGroup
=
(
LPSTR
)
p
;
...
...
@@ -1745,7 +1745,7 @@ QueryServiceConfigA( SC_HANDLE hService,
}
sz
=
n
;
r
=
RegQueryValueExA
(
hKey
,
szDependencies
,
0
,
&
type
,
p
,
&
sz
);
r
=
RegQueryValueExA
(
hKey
,
szDependencies
,
0
,
&
type
,
(
LPBYTE
)
p
,
&
sz
);
if
(
(
r
==
ERROR_SUCCESS
)
||
(
type
==
REG_SZ
)
)
{
lpServiceConfig
->
lpDependencies
=
(
LPSTR
)
p
;
...
...
dlls/advapi32/tests/registry.c
View file @
d7b9a23a
...
...
@@ -66,17 +66,17 @@ static void create_test_entries(void)
SetEnvironmentVariableA
(
"LONGSYSTEMVAR"
,
"bar"
);
SetEnvironmentVariableA
(
"FOO"
,
"ImARatherLongButIndeedNeededString"
);
ok
(
!
RegSetValueExA
(
hkey_main
,
"Test1"
,
0
,
REG_EXPAND_SZ
,
sTestpath1
,
strlen
(
sTestpath1
)
+
1
),
ok
(
!
RegSetValueExA
(
hkey_main
,
"Test1"
,
0
,
REG_EXPAND_SZ
,
(
LPBYTE
)
sTestpath1
,
strlen
(
sTestpath1
)
+
1
),
"RegSetValueExA failed
\n
"
);
ok
(
!
RegSetValueExA
(
hkey_main
,
"Test2"
,
0
,
REG_SZ
,
sTestpath1
,
strlen
(
sTestpath1
)
+
1
),
ok
(
!
RegSetValueExA
(
hkey_main
,
"Test2"
,
0
,
REG_SZ
,
(
LPBYTE
)
sTestpath1
,
strlen
(
sTestpath1
)
+
1
),
"RegSetValueExA failed
\n
"
);
ok
(
!
RegSetValueExA
(
hkey_main
,
"Test3"
,
0
,
REG_EXPAND_SZ
,
sTestpath2
,
strlen
(
sTestpath2
)
+
1
),
ok
(
!
RegSetValueExA
(
hkey_main
,
"Test3"
,
0
,
REG_EXPAND_SZ
,
(
LPBYTE
)
sTestpath2
,
strlen
(
sTestpath2
)
+
1
),
"RegSetValueExA failed
\n
"
);
ok
(
!
RegSetValueExA
(
hkey_main
,
"DWORD"
,
0
,
REG_DWORD
,
(
PVOID
)
qw
,
4
),
ok
(
!
RegSetValueExA
(
hkey_main
,
"DWORD"
,
0
,
REG_DWORD
,
(
LPBYTE
)
qw
,
4
),
"RegSetValueExA failed
\n
"
);
ok
(
!
RegSetValueExA
(
hkey_main
,
"BIN32"
,
0
,
REG_BINARY
,
(
PVOID
)
qw
,
4
),
ok
(
!
RegSetValueExA
(
hkey_main
,
"BIN32"
,
0
,
REG_BINARY
,
(
LPBYTE
)
qw
,
4
),
"RegSetValueExA failed
\n
"
);
ok
(
!
RegSetValueExA
(
hkey_main
,
"BIN64"
,
0
,
REG_BINARY
,
(
PVOID
)
qw
,
8
),
ok
(
!
RegSetValueExA
(
hkey_main
,
"BIN64"
,
0
,
REG_BINARY
,
(
LPBYTE
)
qw
,
8
),
"RegSetValueExA failed
\n
"
);
}
...
...
@@ -115,7 +115,7 @@ static void test_enum_value(void)
type
=
1234
;
strcpy
(
value
,
"xxxxxxxxxx"
);
strcpy
(
data
,
"xxxxxxxxxx"
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
data
,
&
data_count
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %ld
\n
"
,
res
);
ok
(
val_count
==
2
,
"val_count set to %ld
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %ld instead of 7
\n
"
,
data_count
);
...
...
@@ -129,7 +129,7 @@ static void test_enum_value(void)
type
=
1234
;
strcpy
(
value
,
"xxxxxxxxxx"
);
strcpy
(
data
,
"xxxxxxxxxx"
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
data
,
&
data_count
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %ld
\n
"
,
res
);
/* Win9x returns 2 as specified by MSDN but NT returns 3... */
ok
(
val_count
==
2
||
val_count
==
3
,
"val_count set to %ld
\n
"
,
val_count
);
...
...
@@ -147,7 +147,7 @@ static void test_enum_value(void)
type
=
1234
;
strcpy
(
value
,
"xxxxxxxxxx"
);
strcpy
(
data
,
"xxxxxxxxxx"
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
data
,
&
data_count
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %ld
\n
"
,
res
);
ok
(
val_count
==
0
,
"val_count set to %ld
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %ld instead of 7
\n
"
,
data_count
);
...
...
@@ -164,7 +164,7 @@ static void test_enum_value(void)
type
=
1234
;
strcpy
(
value
,
"xxxxxxxxxx"
);
strcpy
(
data
,
"xxxxxxxxxx"
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
data
,
&
data_count
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_MORE_DATA
,
"expected ERROR_MORE_DATA, got %ld
\n
"
,
res
);
ok
(
val_count
==
20
,
"val_count set to %ld
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %ld instead of 7
\n
"
,
data_count
);
...
...
@@ -178,7 +178,7 @@ static void test_enum_value(void)
type
=
1234
;
strcpy
(
value
,
"xxxxxxxxxx"
);
strcpy
(
data
,
"xxxxxxxxxx"
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
data
,
&
data_count
);
res
=
RegEnumValueA
(
test_key
,
0
,
value
,
&
val_count
,
NULL
,
&
type
,
(
LPBYTE
)
data
,
&
data_count
);
ok
(
res
==
ERROR_SUCCESS
,
"expected ERROR_SUCCESS, got %ld
\n
"
,
res
);
ok
(
val_count
==
4
,
"val_count set to %ld instead of 4
\n
"
,
val_count
);
ok
(
data_count
==
7
,
"data_count set to %ld instead of 7
\n
"
,
data_count
);
...
...
dlls/d3d8/d3d8_main.c
View file @
d7b9a23a
...
...
@@ -85,7 +85,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
/* @@ Wine registry key: HKCU\Software\Wine\Direct3D */
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
Direct3D"
,
&
hkey
)
)
{
if
(
!
RegQueryValueExA
(
hkey
,
"VertexShaderMode"
,
0
,
NULL
,
buffer
,
&
size
)
)
if
(
!
RegQueryValueExA
(
hkey
,
"VertexShaderMode"
,
0
,
NULL
,
(
LPBYTE
)
buffer
,
&
size
)
)
{
if
(
!
strcmp
(
buffer
,
"none"
))
{
...
...
@@ -98,7 +98,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
vs_mode
=
VS_SW
;
}
}
if
(
!
RegQueryValueExA
(
hkey
,
"PixelShaderMode"
,
0
,
NULL
,
buffer
,
&
size
)
)
if
(
!
RegQueryValueExA
(
hkey
,
"PixelShaderMode"
,
0
,
NULL
,
(
LPBYTE
)
buffer
,
&
size
)
)
{
if
(
!
strcmp
(
buffer
,
"enabled"
))
{
...
...
dlls/msvideo/msvideo16.c
View file @
d7b9a23a
...
...
@@ -787,7 +787,7 @@ DWORD WINAPI VideoCapDriverDescAndVer16(WORD nr, LPSTR buf1, WORD buf1len,
if
(
strncasecmp
(
buf
,
"vid"
,
3
))
continue
;
if
(
nr
--
)
continue
;
fnLen
=
sizeof
(
fn
);
lRet
=
RegQueryValueExA
(
hKey
,
buf
,
0
,
0
,
fn
,
&
fnLen
);
lRet
=
RegQueryValueExA
(
hKey
,
buf
,
0
,
0
,
(
LPBYTE
)
fn
,
&
fnLen
);
if
(
lRet
==
ERROR_SUCCESS
)
found
=
TRUE
;
break
;
}
...
...
dlls/oleaut32/tmarshal.c
View file @
d7b9a23a
...
...
@@ -262,7 +262,8 @@ _get_typeinfo_for_iid(REFIID riid, ITypeInfo**ti) {
char
tlguid
[
200
],
typelibkey
[
300
],
interfacekey
[
300
],
ver
[
100
];
char
tlfn
[
260
];
OLECHAR
tlfnW
[
260
];
DWORD
tlguidlen
,
verlen
,
type
,
tlfnlen
;
DWORD
tlguidlen
,
verlen
,
type
;
LONG
tlfnlen
;
ITypeLib
*
tl
;
sprintf
(
interfacekey
,
"Interface
\\
{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}
\\
Typelib"
,
...
...
@@ -277,14 +278,14 @@ _get_typeinfo_for_iid(REFIID riid, ITypeInfo**ti) {
}
type
=
(
1
<<
REG_SZ
);
tlguidlen
=
sizeof
(
tlguid
);
if
(
RegQueryValueExA
(
ikey
,
NULL
,
NULL
,
&
type
,
tlguid
,
&
tlguidlen
))
{
if
(
RegQueryValueExA
(
ikey
,
NULL
,
NULL
,
&
type
,
(
LPBYTE
)
tlguid
,
&
tlguidlen
))
{
ERR
(
"Getting typelib guid failed.
\n
"
);
RegCloseKey
(
ikey
);
return
E_FAIL
;
}
type
=
(
1
<<
REG_SZ
);
verlen
=
sizeof
(
ver
);
if
(
RegQueryValueExA
(
ikey
,
"Version"
,
NULL
,
&
type
,
ver
,
&
verlen
))
{
if
(
RegQueryValueExA
(
ikey
,
"Version"
,
NULL
,
&
type
,
(
LPBYTE
)
ver
,
&
verlen
))
{
ERR
(
"Could not get version value?
\n
"
);
RegCloseKey
(
ikey
);
return
E_FAIL
;
...
...
dlls/oleaut32/typelib16.c
View file @
d7b9a23a
...
...
@@ -80,7 +80,7 @@ QueryPathOfRegTypeLib16(
{
char
xguid
[
80
];
char
typelibkey
[
100
],
pathname
[
260
];
DWORD
plen
;
LONG
plen
;
TRACE
(
"
\n
"
);
...
...
dlls/opengl32/wgl.c
View file @
d7b9a23a
...
...
@@ -876,7 +876,7 @@ static BOOL process_attach(void)
internal_gl_disabled_extensions
[
0
]
=
0
;
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
OpenGL"
,
&
hkey
))
{
if
(
!
RegQueryValueExA
(
hkey
,
"DisabledExtensions"
,
0
,
NULL
,
internal_gl_disabled_extensions
,
&
size
))
{
if
(
!
RegQueryValueExA
(
hkey
,
"DisabledExtensions"
,
0
,
NULL
,
(
LPBYTE
)
internal_gl_disabled_extensions
,
&
size
))
{
TRACE
(
"found DisabledExtensions=
\"
%s
\"\n
"
,
internal_gl_disabled_extensions
);
}
RegCloseKey
(
hkey
);
...
...
dlls/setupapi/setupx_main.c
View file @
d7b9a23a
...
...
@@ -300,7 +300,7 @@ void SETUPX_CreateStandardLDDs(void)
len
=
MAX_PATH
;
if
(
(
hKey
)
&&
(
LDID_Data
[
n
].
RegValName
)
&&
(
RegQueryValueExA
(
hKey
,
LDID_Data
[
n
].
RegValName
,
NULL
,
&
type
,
buffer
,
&
len
)
==
ERROR_SUCCESS
)
NULL
,
&
type
,
(
LPBYTE
)
buffer
,
&
len
)
==
ERROR_SUCCESS
)
&&
(
type
==
REG_SZ
)
)
{
TRACE
(
"found value '%s' for LDID %d
\n
"
,
buffer
,
n
);
...
...
dlls/shell32/classes.c
View file @
d7b9a23a
...
...
@@ -194,7 +194,7 @@ static BOOL HCR_RegGetDefaultIconA(HKEY hkey, LPSTR szDest, DWORD len, LPDWORD d
char
sTemp
[
MAX_PATH
];
char
sNum
[
5
];
if
(
!
RegQueryValueExA
(
hkey
,
NULL
,
0
,
&
dwType
,
szDest
,
&
len
))
if
(
!
RegQueryValueExA
(
hkey
,
NULL
,
0
,
&
dwType
,
(
LPBYTE
)
szDest
,
&
len
))
{
if
(
dwType
==
REG_EXPAND_SZ
)
{
...
...
@@ -319,7 +319,7 @@ BOOL HCR_GetClassNameA(REFIID riid, LPSTR szDest, DWORD len)
szDest
[
0
]
=
0
;
if
(
HCR_RegOpenClassIDKey
(
riid
,
&
hkey
))
{
if
(
!
RegQueryValueExA
(
hkey
,
""
,
0
,
NULL
,
szDest
,
&
len
))
if
(
!
RegQueryValueExA
(
hkey
,
""
,
0
,
NULL
,
(
LPBYTE
)
szDest
,
&
len
))
{
ret
=
TRUE
;
}
...
...
dlls/shell32/dialogs.c
View file @
d7b9a23a
...
...
@@ -255,7 +255,7 @@ void FillList (HWND hCb, char *pszLatest)
if
(
icList
>
0
)
{
pszList
=
HeapAlloc
(
GetProcessHeap
(),
0
,
icList
)
;
if
(
ERROR_SUCCESS
!=
RegQueryValueExA
(
hkey
,
"MRUList"
,
NULL
,
NULL
,
pszList
,
&
icList
))
if
(
ERROR_SUCCESS
!=
RegQueryValueExA
(
hkey
,
"MRUList"
,
NULL
,
NULL
,
(
LPBYTE
)
pszList
,
&
icList
))
MessageBoxA
(
hCb
,
"Unable to grab MRUList !"
,
"Nix"
,
MB_OK
)
;
}
else
...
...
@@ -278,7 +278,7 @@ void FillList (HWND hCb, char *pszLatest)
pszCmd
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
pszCmd
,
icCmd
)
;
else
pszCmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
icCmd
)
;
if
(
ERROR_SUCCESS
!=
RegQueryValueExA
(
hkey
,
szIndex
,
NULL
,
NULL
,
pszCmd
,
&
icCmd
))
if
(
ERROR_SUCCESS
!=
RegQueryValueExA
(
hkey
,
szIndex
,
NULL
,
NULL
,
(
LPBYTE
)
pszCmd
,
&
icCmd
))
MessageBoxA
(
hCb
,
"Unable to grab index"
,
"Nix"
,
MB_OK
)
;
if
(
NULL
!=
pszLatest
)
...
...
@@ -328,7 +328,7 @@ void FillList (HWND hCb, char *pszLatest)
memmove
(
&
pszList
[
1
],
pszList
,
Nix
)
;
pszList
[
0
]
=
cMatch
;
szIndex
[
0
]
=
cMatch
;
RegSetValueExA
(
hkey
,
szIndex
,
0
,
REG_SZ
,
pszLatest
,
strlen
(
pszLatest
)
+
1
)
;
RegSetValueExA
(
hkey
,
szIndex
,
0
,
REG_SZ
,
(
LPBYTE
)
pszLatest
,
strlen
(
pszLatest
)
+
1
)
;
}
}
...
...
@@ -350,10 +350,10 @@ void FillList (HWND hCb, char *pszLatest)
memmove
(
&
pszList
[
1
],
pszList
,
icList
-
1
)
;
pszList
[
0
]
=
cMatch
;
szIndex
[
0
]
=
cMatch
;
RegSetValueExA
(
hkey
,
szIndex
,
0
,
REG_SZ
,
pszLatest
,
strlen
(
pszLatest
)
+
1
)
;
RegSetValueExA
(
hkey
,
szIndex
,
0
,
REG_SZ
,
(
LPBYTE
)
pszLatest
,
strlen
(
pszLatest
)
+
1
)
;
}
RegSetValueExA
(
hkey
,
"MRUList"
,
0
,
REG_SZ
,
pszList
,
strlen
(
pszList
)
+
1
)
;
RegSetValueExA
(
hkey
,
"MRUList"
,
0
,
REG_SZ
,
(
LPBYTE
)
pszList
,
strlen
(
pszList
)
+
1
)
;
HeapFree
(
GetProcessHeap
(),
0
,
pszCmd
)
;
HeapFree
(
GetProcessHeap
(),
0
,
pszList
)
;
...
...
dlls/user/tests/sysparams.c
View file @
d7b9a23a
...
...
@@ -209,7 +209,7 @@ static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName1, LPCS
*
value
=
'\0'
;
valueLen
=
sizeof
(
value
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
subKey1
,
&
hKey
);
rc
=
RegQueryValueExA
(
hKey
,
valName1
,
NULL
,
&
type
,
value
,
&
valueLen
);
rc
=
RegQueryValueExA
(
hKey
,
valName1
,
NULL
,
&
type
,
(
LPBYTE
)
value
,
&
valueLen
);
RegCloseKey
(
hKey
);
if
(
rc
==
ERROR_SUCCESS
)
{
...
...
@@ -228,7 +228,7 @@ static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName1, LPCS
*
value
=
'\0'
;
valueLen
=
sizeof
(
value
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
subKey1
,
&
hKey
);
rc
=
RegQueryValueExA
(
hKey
,
valName2
,
NULL
,
&
type
,
value
,
&
valueLen
);
rc
=
RegQueryValueExA
(
hKey
,
valName2
,
NULL
,
&
type
,
(
LPBYTE
)
value
,
&
valueLen
);
RegCloseKey
(
hKey
);
if
(
rc
==
ERROR_SUCCESS
)
{
...
...
@@ -248,7 +248,7 @@ static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName1, LPCS
*
value
=
'\0'
;
valueLen
=
sizeof
(
value
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
subKey2
,
&
hKey
);
rc
=
RegQueryValueExA
(
hKey
,
valName1
,
NULL
,
&
type
,
value
,
&
valueLen
);
rc
=
RegQueryValueExA
(
hKey
,
valName1
,
NULL
,
&
type
,
(
LPBYTE
)
value
,
&
valueLen
);
RegCloseKey
(
hKey
);
if
(
rc
==
ERROR_SUCCESS
)
{
...
...
@@ -267,7 +267,7 @@ static void _test_reg_key( LPCSTR subKey1, LPCSTR subKey2, LPCSTR valName1, LPCS
*
value
=
'\0'
;
valueLen
=
sizeof
(
value
);
RegOpenKeyA
(
HKEY_CURRENT_USER
,
subKey2
,
&
hKey
);
rc
=
RegQueryValueExA
(
hKey
,
valName2
,
NULL
,
&
type
,
value
,
&
valueLen
);
rc
=
RegQueryValueExA
(
hKey
,
valName2
,
NULL
,
&
type
,
(
LPBYTE
)
value
,
&
valueLen
);
RegCloseKey
(
hKey
);
if
(
rc
==
ERROR_SUCCESS
)
{
...
...
dlls/winaspi/aspi.c
View file @
d7b9a23a
...
...
@@ -187,7 +187,7 @@ SCSI_GetDeviceName( int h, int c, int t, int d, LPSTR devstr, LPDWORD lpcbData )
sprintf
(
idstr
,
"h%02dc%02dt%02dd%02d"
,
h
,
c
,
t
,
d
);
if
(
RegQueryValueExA
(
hkeyScsi
,
idstr
,
NULL
,
&
type
,
devstr
,
lpcbData
)
!=
ERROR_SUCCESS
)
if
(
RegQueryValueExA
(
hkeyScsi
,
idstr
,
NULL
,
&
type
,
(
LPBYTE
)
devstr
,
lpcbData
)
!=
ERROR_SUCCESS
)
{
WARN
(
"Could not query value HKEY_DYN_DATA
\\
%s
\\
%s
\n
"
,
KEYNAME_SCSI
,
idstr
);
RegCloseKey
(
hkeyScsi
);
...
...
@@ -647,7 +647,7 @@ SCSI_GetProcinfo()
sprintf
(
idstr
,
"h%02dc%02dt%02dd%02d"
,
dev
.
host
,
dev
.
channel
,
dev
.
target
,
dev
.
lun
);
sprintf
(
devstr
,
"/dev/sg%c"
,
'a'
+
devnum
);
if
(
RegSetValueExA
(
hkeyScsi
,
idstr
,
0
,
REG_SZ
,
devstr
,
strlen
(
devstr
)
+
1
)
!=
ERROR_SUCCESS
)
if
(
RegSetValueExA
(
hkeyScsi
,
idstr
,
0
,
REG_SZ
,
(
LPBYTE
)
devstr
,
strlen
(
devstr
)
+
1
)
!=
ERROR_SUCCESS
)
{
ERR
(
"Could not set value HKEY_DYN_DATA
\\
%s
\\
%s
\n
"
,
KEYNAME_SCSI
,
idstr
);
}
...
...
dlls/winaspi/winaspi16.c
View file @
d7b9a23a
...
...
@@ -89,7 +89,7 @@ ASPI_OpenDevice16(SRB_ExecSCSICmd16 *prb)
if
(
!
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
idstr
,
0
,
KEY_ALL_ACCESS
,
&
hkey
))
{
DWORD
type
,
count
=
sizeof
(
device_str
);
if
(
RegQueryValueExA
(
hkey
,
"Device"
,
0
,
&
type
,
device_str
,
&
count
))
device_str
[
0
]
=
0
;
if
(
RegQueryValueExA
(
hkey
,
"Device"
,
0
,
&
type
,
(
LPBYTE
)
device_str
,
&
count
))
device_str
[
0
]
=
0
;
RegCloseKey
(
hkey
);
}
...
...
dlls/wineps/init.c
View file @
d7b9a23a
...
...
@@ -611,7 +611,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
}
if
(
value_name
)
{
ppdFileName
=
HeapAlloc
(
PSDRV_Heap
,
0
,
needed
);
RegQueryValueExA
(
hkey
,
value_name
,
0
,
&
ppdType
,
ppdFileName
,
&
needed
);
RegQueryValueExA
(
hkey
,
value_name
,
0
,
&
ppdType
,
(
LPBYTE
)
ppdFileName
,
&
needed
);
}
RegCloseKey
(
hkey
);
}
...
...
dlls/x11drv/x11drv_main.c
View file @
d7b9a23a
...
...
@@ -209,8 +209,8 @@ void wine_tsx11_unlock(void)
inline
static
DWORD
get_config_key
(
HKEY
defkey
,
HKEY
appkey
,
const
char
*
name
,
char
*
buffer
,
DWORD
size
)
{
if
(
appkey
&&
!
RegQueryValueExA
(
appkey
,
name
,
0
,
NULL
,
buffer
,
&
size
))
return
0
;
if
(
defkey
&&
!
RegQueryValueExA
(
defkey
,
name
,
0
,
NULL
,
buffer
,
&
size
))
return
0
;
if
(
appkey
&&
!
RegQueryValueExA
(
appkey
,
name
,
0
,
NULL
,
(
LPBYTE
)
buffer
,
&
size
))
return
0
;
if
(
defkey
&&
!
RegQueryValueExA
(
defkey
,
name
,
0
,
NULL
,
(
LPBYTE
)
buffer
,
&
size
))
return
0
;
return
ERROR_FILE_NOT_FOUND
;
}
...
...
dlls/x11drv/xfont.c
View file @
d7b9a23a
...
...
@@ -1451,7 +1451,7 @@ static void XFONT_LoadDefault( HKEY hkey, LPCSTR ini, LPCSTR fonttype)
DWORD
type
,
count
=
sizeof
(
buffer
);
buffer
[
0
]
=
0
;
RegQueryValueExA
(
hkey
,
ini
,
0
,
&
type
,
buffer
,
&
count
);
RegQueryValueExA
(
hkey
,
ini
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
);
if
(
*
buffer
)
{
...
...
@@ -1654,7 +1654,7 @@ static void XFONT_LoadAliases( HKEY hkey )
if
(
hkey
)
{
DWORD
type
,
count
=
sizeof
(
buffer
);
RegQueryValueExA
(
hkey
,
INIDefaultSerif
,
0
,
&
type
,
buffer
,
&
count
);
RegQueryValueExA
(
hkey
,
INIDefaultSerif
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
);
}
TRACE
(
"Using '%s' as default serif font
\n
"
,
buffer
);
if
(
LFD_Parse
(
buffer
,
&
lfd
))
...
...
@@ -1671,7 +1671,7 @@ static void XFONT_LoadAliases( HKEY hkey )
if
(
hkey
)
{
DWORD
type
,
count
=
sizeof
(
buffer
);
RegQueryValueExA
(
hkey
,
INIDefaultSansSerif
,
0
,
&
type
,
buffer
,
&
count
);
RegQueryValueExA
(
hkey
,
INIDefaultSansSerif
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
);
}
TRACE
(
"Using '%s' as default sans serif font
\n
"
,
buffer
);
if
(
LFD_Parse
(
buffer
,
&
lfd
))
...
...
@@ -1696,7 +1696,7 @@ static void XFONT_LoadAliases( HKEY hkey )
if
(
hkey
)
{
DWORD
type
,
count
=
sizeof
(
buffer
);
RegQueryValueExA
(
hkey
,
subsection
,
0
,
&
type
,
buffer
,
&
count
);
RegQueryValueExA
(
hkey
,
subsection
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
);
}
if
(
!
buffer
[
0
])
...
...
@@ -1821,7 +1821,7 @@ static void XFONT_LoadIgnores( HKEY hkey )
DWORD
type
,
count
=
sizeof
(
buffer
);
sprintf
(
subsection
,
"%s%i"
,
INIIgnoreSection
,
i
++
);
if
(
!
RegQueryValueExA
(
hkey
,
subsection
,
0
,
&
type
,
buffer
,
&
count
))
if
(
!
RegQueryValueExA
(
hkey
,
subsection
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
))
{
char
*
pch
=
buffer
;
while
(
*
pch
&&
isspace
(
*
pch
)
)
pch
++
;
...
...
@@ -2909,7 +2909,7 @@ static void X11DRV_FONT_InitX11Metrics( void )
if
(
hkey
)
{
DWORD
type
,
count
=
buf_size
;
RegQueryValueExA
(
hkey
,
INIGlobalMetrics
,
0
,
&
type
,
buffer
,
&
count
);
RegQueryValueExA
(
hkey
,
INIGlobalMetrics
,
0
,
&
type
,
(
LPBYTE
)
buffer
,
&
count
);
}
if
(
buffer
[
0
]
)
...
...
programs/wineconsole/registry.c
View file @
d7b9a23a
...
...
@@ -88,64 +88,64 @@ static void WINECON_RegLoadHelper(HKEY hConKey, struct config_data* cfg)
DWORD
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszCursorSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszCursorSize
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
cursor_size
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszCursorVisible
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszCursorVisible
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
cursor_visible
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszEditionMode
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszEditionMode
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
edition_mode
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszExitOnDie
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszExitOnDie
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
exit_on_die
=
val
;
count
=
sizeof
(
cfg
->
face_name
);
RegQueryValueEx
(
hConKey
,
wszFaceName
,
0
,
&
type
,
(
char
*
)
&
cfg
->
face_name
,
&
count
);
RegQueryValueEx
(
hConKey
,
wszFaceName
,
0
,
&
type
,
(
LPBYTE
)
&
cfg
->
face_name
,
&
count
);
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszFontSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszFontSize
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
{
cfg
->
cell_height
=
HIWORD
(
val
);
cfg
->
cell_width
=
LOWORD
(
val
);
}
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszFontWeight
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszFontWeight
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
font_weight
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszHistoryBufferSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszHistoryBufferSize
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
history_size
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszHistoryNoDup
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszHistoryNoDup
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
history_nodup
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszMenuMask
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszMenuMask
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
menu_mask
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszQuickEdit
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszQuickEdit
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
quick_edit
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszScreenBufferSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszScreenBufferSize
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
{
cfg
->
sb_height
=
HIWORD
(
val
);
cfg
->
sb_width
=
LOWORD
(
val
);
}
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszScreenColors
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszScreenColors
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
cfg
->
def_attr
=
val
;
count
=
sizeof
(
val
);
if
(
!
RegQueryValueEx
(
hConKey
,
wszWindowSize
,
0
,
&
type
,
(
char
*
)
&
val
,
&
count
))
if
(
!
RegQueryValueEx
(
hConKey
,
wszWindowSize
,
0
,
&
type
,
(
LPBYTE
)
&
val
,
&
count
))
{
cfg
->
win_height
=
HIWORD
(
val
);
cfg
->
win_width
=
LOWORD
(
val
);
...
...
@@ -220,45 +220,45 @@ static void WINECON_RegSaveHelper(HKEY hConKey, const struct config_data* cfg)
WINECON_DumpConfig
(
"save"
,
cfg
);
val
=
cfg
->
cursor_size
;
RegSetValueEx
(
hConKey
,
wszCursorSize
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszCursorSize
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
cursor_visible
;
RegSetValueEx
(
hConKey
,
wszCursorVisible
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszCursorVisible
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
edition_mode
;
RegSetValueEx
(
hConKey
,
wszEditionMode
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszEditionMode
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
exit_on_die
;
RegSetValueEx
(
hConKey
,
wszExitOnDie
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszExitOnDie
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszFaceName
,
0
,
REG_SZ
,
(
char
*
)
&
cfg
->
face_name
,
sizeof
(
cfg
->
face_name
));
RegSetValueEx
(
hConKey
,
wszFaceName
,
0
,
REG_SZ
,
(
LPBYTE
)
&
cfg
->
face_name
,
sizeof
(
cfg
->
face_name
));
val
=
MAKELONG
(
cfg
->
cell_width
,
cfg
->
cell_height
);
RegSetValueEx
(
hConKey
,
wszFontSize
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszFontSize
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
font_weight
;
RegSetValueEx
(
hConKey
,
wszFontWeight
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszFontWeight
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
history_size
;
RegSetValueEx
(
hConKey
,
wszHistoryBufferSize
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszHistoryBufferSize
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
history_nodup
;
RegSetValueEx
(
hConKey
,
wszHistoryNoDup
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszHistoryNoDup
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
menu_mask
;
RegSetValueEx
(
hConKey
,
wszMenuMask
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszMenuMask
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
quick_edit
;
RegSetValueEx
(
hConKey
,
wszQuickEdit
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszQuickEdit
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
MAKELONG
(
cfg
->
sb_width
,
cfg
->
sb_height
);
RegSetValueEx
(
hConKey
,
wszScreenBufferSize
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszScreenBufferSize
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
cfg
->
def_attr
;
RegSetValueEx
(
hConKey
,
wszScreenColors
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszScreenColors
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
val
=
MAKELONG
(
cfg
->
win_width
,
cfg
->
win_height
);
RegSetValueEx
(
hConKey
,
wszWindowSize
,
0
,
REG_DWORD
,
(
char
*
)
&
val
,
sizeof
(
val
));
RegSetValueEx
(
hConKey
,
wszWindowSize
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
val
,
sizeof
(
val
));
}
/******************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment