Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
61aabd66
Commit
61aabd66
authored
Aug 15, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Warning fixes for gcc 4.0.
parent
7160af00
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
registry16.c
dlls/kernel/registry16.c
+2
-2
compobj.c
dlls/ole32/compobj.c
+5
-5
storage32.c
dlls/ole32/storage32.c
+1
-1
shell.c
dlls/shell32/shell.c
+1
-1
No files found.
dlls/kernel/registry16.c
View file @
61aabd66
...
@@ -176,7 +176,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count
...
@@ -176,7 +176,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count
if
(
!
advapi32
)
init_func_ptrs
();
if
(
!
advapi32
)
init_func_ptrs
();
fix_win16_hkey
(
&
hkey
);
fix_win16_hkey
(
&
hkey
);
if
(
count
)
*
count
&=
0xffff
;
if
(
count
)
*
count
&=
0xffff
;
return
pRegQueryValueA
(
hkey
,
name
,
data
,
count
);
return
pRegQueryValueA
(
hkey
,
name
,
data
,
(
LONG
*
)
count
);
}
}
/******************************************************************************
/******************************************************************************
...
@@ -198,7 +198,7 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
...
@@ -198,7 +198,7 @@ DWORD WINAPI RegSetValueEx16( HKEY hkey, LPCSTR name, DWORD reserved, DWORD type
{
{
if
(
!
advapi32
)
init_func_ptrs
();
if
(
!
advapi32
)
init_func_ptrs
();
fix_win16_hkey
(
&
hkey
);
fix_win16_hkey
(
&
hkey
);
if
(
!
count
&&
(
type
==
REG_SZ
))
count
=
strlen
(
data
);
if
(
!
count
&&
(
type
==
REG_SZ
))
count
=
strlen
(
(
char
*
)
data
);
return
pRegSetValueExA
(
hkey
,
name
,
reserved
,
type
,
data
,
count
);
return
pRegSetValueExA
(
hkey
,
name
,
reserved
,
type
,
data
,
count
);
}
}
...
...
dlls/ole32/compobj.c
View file @
61aabd66
...
@@ -1026,7 +1026,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
...
@@ -1026,7 +1026,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
if
(
ret
==
S_OK
)
if
(
ret
==
S_OK
)
{
{
DWORD
progidlen
=
0
;
LONG
progidlen
=
0
;
if
(
RegQueryValueW
(
hkey
,
NULL
,
NULL
,
&
progidlen
))
if
(
RegQueryValueW
(
hkey
,
NULL
,
NULL
,
&
progidlen
))
ret
=
REGDB_E_CLASSNOTREG
;
ret
=
REGDB_E_CLASSNOTREG
;
...
@@ -1064,7 +1064,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
...
@@ -1064,7 +1064,7 @@ HRESULT WINAPI ProgIDFromCLSID(REFCLSID clsid, LPOLESTR *lplpszProgID)
HRESULT
WINAPI
CLSIDFromProgID16
(
LPCOLESTR16
progid
,
LPCLSID
riid
)
HRESULT
WINAPI
CLSIDFromProgID16
(
LPCOLESTR16
progid
,
LPCLSID
riid
)
{
{
char
*
buf
,
buf2
[
80
];
char
*
buf
,
buf2
[
80
];
DWORD
buf2len
;
LONG
buf2len
;
HRESULT
err
;
HRESULT
err
;
HKEY
xhkey
;
HKEY
xhkey
;
...
@@ -1101,7 +1101,7 @@ HRESULT WINAPI CLSIDFromProgID(LPCOLESTR progid, LPCLSID riid)
...
@@ -1101,7 +1101,7 @@ HRESULT WINAPI CLSIDFromProgID(LPCOLESTR progid, LPCLSID riid)
{
{
static
const
WCHAR
clsidW
[]
=
{
'\\'
,
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
clsidW
[]
=
{
'\\'
,
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
WCHAR
buf2
[
CHARS_IN_GUID
];
WCHAR
buf2
[
CHARS_IN_GUID
];
DWORD
buf2len
=
sizeof
(
buf2
);
LONG
buf2len
=
sizeof
(
buf2
);
HKEY
xhkey
;
HKEY
xhkey
;
WCHAR
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
strlenW
(
progid
)
+
8
)
*
sizeof
(
WCHAR
)
);
WCHAR
*
buf
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
strlenW
(
progid
)
+
8
)
*
sizeof
(
WCHAR
)
);
...
@@ -1166,7 +1166,7 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid)
...
@@ -1166,7 +1166,7 @@ HRESULT WINAPI CoGetPSClsid(REFIID riid, CLSID *pclsid)
static
const
WCHAR
wszPSC
[]
=
{
'\\'
,
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'S'
,
't'
,
'u'
,
'b'
,
'C'
,
'l'
,
's'
,
'i'
,
'd'
,
'3'
,
'2'
,
0
};
static
const
WCHAR
wszPSC
[]
=
{
'\\'
,
'P'
,
'r'
,
'o'
,
'x'
,
'y'
,
'S'
,
't'
,
'u'
,
'b'
,
'C'
,
'l'
,
's'
,
'i'
,
'd'
,
'3'
,
'2'
,
0
};
WCHAR
path
[
ARRAYSIZE
(
wszInterface
)
-
1
+
CHARS_IN_GUID
-
1
+
ARRAYSIZE
(
wszPSC
)];
WCHAR
path
[
ARRAYSIZE
(
wszInterface
)
-
1
+
CHARS_IN_GUID
-
1
+
ARRAYSIZE
(
wszPSC
)];
WCHAR
value
[
CHARS_IN_GUID
];
WCHAR
value
[
CHARS_IN_GUID
];
DWORD
len
;
LONG
len
;
HKEY
hkey
;
HKEY
hkey
;
TRACE
(
"() riid=%s, pclsid=%p
\n
"
,
debugstr_guid
(
riid
),
pclsid
);
TRACE
(
"() riid=%s, pclsid=%p
\n
"
,
debugstr_guid
(
riid
),
pclsid
);
...
@@ -2206,7 +2206,7 @@ HRESULT WINAPI OleGetAutoConvert(REFCLSID clsidOld, LPCLSID pClsidNew)
...
@@ -2206,7 +2206,7 @@ HRESULT WINAPI OleGetAutoConvert(REFCLSID clsidOld, LPCLSID pClsidNew)
static
const
WCHAR
wszAutoConvertTo
[]
=
{
'A'
,
'u'
,
't'
,
'o'
,
'C'
,
'o'
,
'n'
,
'v'
,
'e'
,
'r'
,
't'
,
'T'
,
'o'
,
0
};
static
const
WCHAR
wszAutoConvertTo
[]
=
{
'A'
,
'u'
,
't'
,
'o'
,
'C'
,
'o'
,
'n'
,
'v'
,
'e'
,
'r'
,
't'
,
'T'
,
'o'
,
0
};
HKEY
hkey
=
NULL
;
HKEY
hkey
=
NULL
;
WCHAR
buf
[
CHARS_IN_GUID
];
WCHAR
buf
[
CHARS_IN_GUID
];
DWORD
len
;
LONG
len
;
HRESULT
res
=
S_OK
;
HRESULT
res
=
S_OK
;
if
(
ERROR_SUCCESS
!=
COM_OpenKeyForCLSID
(
clsidOld
,
KEY_READ
,
&
hkey
))
if
(
ERROR_SUCCESS
!=
COM_OpenKeyForCLSID
(
clsidOld
,
KEY_READ
,
&
hkey
))
...
...
dlls/ole32/storage32.c
View file @
61aabd66
...
@@ -7091,7 +7091,7 @@ HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName
...
@@ -7091,7 +7091,7 @@ HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName
{
{
char
strTemp
[
OLESTREAM_MAX_STR_LEN
];
char
strTemp
[
OLESTREAM_MAX_STR_LEN
];
IStorageCompObj
.
dwCLSIDNameLength
=
OLESTREAM_MAX_STR_LEN
;
IStorageCompObj
.
dwCLSIDNameLength
=
OLESTREAM_MAX_STR_LEN
;
hErr
=
RegQueryValueA
(
hKey
,
NULL
,
strTemp
,
&
(
IStorageCompObj
.
dwCLSIDNameLength
));
hErr
=
RegQueryValueA
(
hKey
,
NULL
,
strTemp
,
(
LONG
*
)
&
(
IStorageCompObj
.
dwCLSIDNameLength
));
if
(
hErr
==
ERROR_SUCCESS
)
if
(
hErr
==
ERROR_SUCCESS
)
{
{
strcpy
(
IStorageCompObj
.
strCLSIDName
,
strTemp
);
strcpy
(
IStorageCompObj
.
strCLSIDName
,
strTemp
);
...
...
dlls/shell32/shell.c
View file @
61aabd66
...
@@ -574,7 +574,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count
...
@@ -574,7 +574,7 @@ DWORD WINAPI RegQueryValue16( HKEY hkey, LPCSTR name, LPSTR data, LPDWORD count
{
{
fix_win16_hkey
(
&
hkey
);
fix_win16_hkey
(
&
hkey
);
if
(
count
)
*
count
&=
0xffff
;
if
(
count
)
*
count
&=
0xffff
;
return
RegQueryValueA
(
hkey
,
name
,
data
,
count
);
return
RegQueryValueA
(
hkey
,
name
,
data
,
(
LONG
*
)
count
);
}
}
/******************************************************************************
/******************************************************************************
...
...
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