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
eafa666b
Commit
eafa666b
authored
Aug 22, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some gcc 4.0 warnings.
parent
d5b898c1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
stg_prop.c
dlls/ole32/stg_prop.c
+3
-3
regsvr.c
dlls/shell32/regsvr.c
+1
-1
shellole.c
dlls/shell32/shellole.c
+1
-1
shellreg.c
dlls/shell32/shellreg.c
+1
-1
sysparams.c
dlls/user/sysparams.c
+6
-6
mmsystem.c
dlls/winmm/mmsystem.c
+2
-2
No files found.
dlls/ole32/stg_prop.c
View file @
eafa666b
...
...
@@ -1022,7 +1022,7 @@ static HRESULT PropertyStorage_ReadDictionary(PropertyStorage_impl *This,
ptr
[
cbEntry
-
1
]
=
'\0'
;
else
*
((
LPWSTR
)
ptr
+
cbEntry
/
sizeof
(
WCHAR
))
=
'\0'
;
hr
=
PropertyStorage_StoreNameWithId
(
This
,
ptr
,
This
->
codePage
,
propid
);
hr
=
PropertyStorage_StoreNameWithId
(
This
,
(
char
*
)
ptr
,
This
->
codePage
,
propid
);
if
(
This
->
codePage
==
CP_UNICODE
)
{
/* Unicode entries are padded to DWORD boundaries */
...
...
@@ -1060,7 +1060,7 @@ static HRESULT PropertyStorage_ReadProperty(PropertyStorage_impl *This,
TRACE
(
"Read byte 0x%x
\n
"
,
prop
->
u
.
bVal
);
break
;
case
VT_I2
:
StorageUtl_ReadWord
(
data
,
0
,
&
prop
->
u
.
iVal
);
StorageUtl_ReadWord
(
data
,
0
,
(
WORD
*
)
&
prop
->
u
.
iVal
);
TRACE
(
"Read short %d
\n
"
,
prop
->
u
.
iVal
);
break
;
case
VT_UI2
:
...
...
@@ -1069,7 +1069,7 @@ static HRESULT PropertyStorage_ReadProperty(PropertyStorage_impl *This,
break
;
case
VT_INT
:
case
VT_I4
:
StorageUtl_ReadDWord
(
data
,
0
,
&
prop
->
u
.
lVal
);
StorageUtl_ReadDWord
(
data
,
0
,
(
DWORD
*
)
&
prop
->
u
.
lVal
);
TRACE
(
"Read long %ld
\n
"
,
prop
->
u
.
lVal
);
break
;
case
VT_UINT
:
...
...
dlls/shell32/regsvr.c
View file @
eafa666b
...
...
@@ -313,7 +313,7 @@ static HRESULT register_coclasses(struct regsvr_coclass const *list)
&
shellfolder_key
,
NULL
);
if
(
res
!=
ERROR_SUCCESS
)
goto
error_close_clsid_key
;
if
(
list
->
flags
&
SHELLFOLDER_WANTSFORPARSING
)
res
=
RegSetValueExA
(
shellfolder_key
,
wfparsing_valuename
,
0
,
REG_SZ
,
""
,
1
);
res
=
RegSetValueExA
(
shellfolder_key
,
wfparsing_valuename
,
0
,
REG_SZ
,
(
LPBYTE
)
""
,
1
);
if
(
list
->
flags
&
SHELLFOLDER_ATTRIBUTES
)
res
=
RegSetValueExA
(
shellfolder_key
,
attributes_valuename
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
list
->
dwAttributes
,
sizeof
(
DWORD
));
...
...
dlls/shell32/shellole.c
View file @
eafa666b
...
...
@@ -642,7 +642,7 @@ HRESULT WINAPI SHCreateDefClassObject(
shdebugstr_guid
(
riid
),
ppv
,
lpfnCI
,
pcRefDll
,
shdebugstr_guid
(
riidInst
));
if
(
!
IsEqualCLSID
(
riid
,
&
IID_IClassFactory
)
)
return
E_NOINTERFACE
;
if
(
!
(
pcf
=
IDefClF_fnConstructor
(
lpfnCI
,
pcRefDll
,
riidInst
)))
return
E_OUTOFMEMORY
;
if
(
!
(
pcf
=
IDefClF_fnConstructor
(
lpfnCI
,
(
PLONG
)
pcRefDll
,
riidInst
)))
return
E_OUTOFMEMORY
;
*
ppv
=
pcf
;
return
NOERROR
;
}
...
...
dlls/shell32/shellreg.c
View file @
eafa666b
...
...
@@ -95,7 +95,7 @@ HRESULT WINAPI SHRegQueryValueW(
{
WARN
(
"%p %s %p %p semi-stub
\n
"
,
hkey
,
debugstr_w
(
lpszSubKey
),
lpszData
,
lpcbData
);
return
RegQueryValueW
(
hkey
,
lpszSubKey
,
lpszData
,
lpcbData
);
return
RegQueryValueW
(
hkey
,
lpszSubKey
,
lpszData
,
(
LONG
*
)
lpcbData
);
}
/*************************************************************************
...
...
dlls/user/sysparams.c
View file @
eafa666b
...
...
@@ -1107,7 +1107,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
ret
=
get_twips_param
(
SPI_ICONHORIZONTALSPACING_IDX
,
SPI_ICONHORIZONTALSPACING_REGKEY
,
SPI_ICONHORIZONTALSPACING_VALNAME
,
&
icon_metrics
.
iHorzSpacing
,
pvParam
);
(
UINT
*
)
&
icon_metrics
.
iHorzSpacing
,
pvParam
);
}
else
{
...
...
@@ -1115,7 +1115,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
ret
=
set_uint_param
(
SPI_ICONHORIZONTALSPACING_IDX
,
SPI_ICONHORIZONTALSPACING_REGKEY
,
SPI_ICONHORIZONTALSPACING_VALNAME
,
&
icon_metrics
.
iHorzSpacing
,
uiParam
,
fWinIni
);
(
UINT
*
)
&
icon_metrics
.
iHorzSpacing
,
uiParam
,
fWinIni
);
}
break
;
...
...
@@ -1204,7 +1204,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
ret
=
get_twips_param
(
SPI_ICONVERTICALSPACING_IDX
,
SPI_ICONVERTICALSPACING_REGKEY
,
SPI_ICONVERTICALSPACING_VALNAME
,
&
icon_metrics
.
iVertSpacing
,
pvParam
);
(
UINT
*
)
&
icon_metrics
.
iVertSpacing
,
pvParam
);
}
else
{
...
...
@@ -1212,7 +1212,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
ret
=
set_uint_param
(
SPI_ICONVERTICALSPACING_IDX
,
SPI_ICONVERTICALSPACING_REGKEY
,
SPI_ICONVERTICALSPACING_VALNAME
,
&
icon_metrics
.
iVertSpacing
,
uiParam
,
fWinIni
);
(
UINT
*
)
&
icon_metrics
.
iVertSpacing
,
uiParam
,
fWinIni
);
}
break
;
...
...
@@ -1312,7 +1312,7 @@ BOOL WINAPI SystemParametersInfoW( UINT uiAction, UINT uiParam,
break
;
case
SPI_SETMOUSEBUTTONSWAP
:
ret
=
set_
uint
_param
(
SPI_SETMOUSEBUTTONSWAP_IDX
,
ret
=
set_
bool
_param
(
SPI_SETMOUSEBUTTONSWAP_IDX
,
SPI_SETMOUSEBUTTONSWAP_REGKEY
,
SPI_SETMOUSEBUTTONSWAP_VALNAME
,
&
swap_buttons
,
uiParam
,
fWinIni
);
...
...
@@ -2261,7 +2261,7 @@ INT WINAPI GetSystemMetrics( INT index )
case
SM_DEBUG
:
return
0
;
case
SM_SWAPBUTTON
:
get_
uint
_param
(
SPI_SETMOUSEBUTTONSWAP_IDX
,
SPI_SETMOUSEBUTTONSWAP_REGKEY
,
get_
bool
_param
(
SPI_SETMOUSEBUTTONSWAP_IDX
,
SPI_SETMOUSEBUTTONSWAP_REGKEY
,
SPI_SETMOUSEBUTTONSWAP_VALNAME
,
&
swap_buttons
,
&
ret
);
return
ret
;
case
SM_RESERVED1
:
...
...
dlls/winmm/mmsystem.c
View file @
eafa666b
...
...
@@ -2232,7 +2232,7 @@ void WINAPI WMMMidiRunOnce16(void)
*
* Map a 32 bit driver message to a 16 bit driver message.
*/
static
WINMM_MapType
DRIVER_MapMsg32To16
(
WORD
wMsg
,
DWORD
*
lParam1
,
DWORD
*
lParam2
)
static
WINMM_MapType
DRIVER_MapMsg32To16
(
WORD
wMsg
,
LPARAM
*
lParam1
,
LPARAM
*
lParam2
)
{
WINMM_MapType
ret
=
WINMM_MAP_MSGERROR
;
...
...
@@ -2743,7 +2743,7 @@ static LRESULT MMIO_UnMap32To16(DWORD wMsg, LPARAM lParam1, LPARAM lParam2,
static
LRESULT
MMIO_Callback16
(
SEGPTR
cb16
,
LPMMIOINFO
lpmmioinfo
,
UINT
uMessage
,
LPARAM
lParam1
,
LPARAM
lParam2
)
{
LRESULT
result
;
DWORD
result
;
MMIOINFO16
mmioInfo16
;
SEGPTR
segmmioInfo16
;
LPARAM
lp1
=
lParam1
,
lp2
=
lParam2
;
...
...
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