Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
af3055e2
Commit
af3055e2
authored
Apr 28, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Remove unused variables.
parent
af72d100
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
14 deletions
+10
-14
ordinal.c
dlls/shlwapi/ordinal.c
+2
-2
reg.c
dlls/shlwapi/reg.c
+6
-8
url.c
dlls/shlwapi/url.c
+2
-4
No files found.
dlls/shlwapi/ordinal.c
View file @
af3055e2
...
@@ -1492,11 +1492,11 @@ HRESULT WINAPI IUnknown_QueryService(IUnknown* lpUnknown, REFGUID sid, REFIID ri
...
@@ -1492,11 +1492,11 @@ HRESULT WINAPI IUnknown_QueryService(IUnknown* lpUnknown, REFGUID sid, REFIID ri
*/
*/
BOOL
WINAPI
SHLoadMenuPopup
(
HINSTANCE
hInst
,
LPCWSTR
szName
)
BOOL
WINAPI
SHLoadMenuPopup
(
HINSTANCE
hInst
,
LPCWSTR
szName
)
{
{
HMENU
hMenu
,
hSubMenu
;
HMENU
hMenu
;
if
((
hMenu
=
LoadMenuW
(
hInst
,
szName
)))
if
((
hMenu
=
LoadMenuW
(
hInst
,
szName
)))
{
{
if
(
(
hSubMenu
=
GetSubMenu
(
hMenu
,
0
)
))
if
(
GetSubMenu
(
hMenu
,
0
))
RemoveMenu
(
hMenu
,
0
,
MF_BYPOSITION
);
RemoveMenu
(
hMenu
,
0
,
MF_BYPOSITION
);
DestroyMenu
(
hMenu
);
DestroyMenu
(
hMenu
);
...
...
dlls/shlwapi/reg.c
View file @
af3055e2
...
@@ -626,7 +626,6 @@ BOOL WINAPI SHRegGetBoolUSValueA(
...
@@ -626,7 +626,6 @@ BOOL WINAPI SHRegGetBoolUSValueA(
BOOL
fIgnoreHKCU
,
/* [I] TRUE=Don't check HKEY_CURRENT_USER */
BOOL
fIgnoreHKCU
,
/* [I] TRUE=Don't check HKEY_CURRENT_USER */
BOOL
fDefault
)
/* [I] Default value to use if pszValue is not present */
BOOL
fDefault
)
/* [I] Default value to use if pszValue is not present */
{
{
LONG
retvalue
;
DWORD
type
,
datalen
,
work
;
DWORD
type
,
datalen
,
work
;
BOOL
ret
=
fDefault
;
BOOL
ret
=
fDefault
;
CHAR
data
[
10
];
CHAR
data
[
10
];
...
@@ -636,9 +635,9 @@ BOOL WINAPI SHRegGetBoolUSValueA(
...
@@ -636,9 +635,9 @@ BOOL WINAPI SHRegGetBoolUSValueA(
(
fIgnoreHKCU
)
?
"Ignoring HKCU"
:
"Tries HKCU then HKLM"
);
(
fIgnoreHKCU
)
?
"Ignoring HKCU"
:
"Tries HKCU then HKLM"
);
datalen
=
sizeof
(
data
)
-
1
;
datalen
=
sizeof
(
data
)
-
1
;
if
(
!
(
retvalue
=
SHRegGetUSValueA
(
pszSubKey
,
pszValue
,
&
type
,
if
(
!
SHRegGetUSValueA
(
pszSubKey
,
pszValue
,
&
type
,
data
,
&
datalen
,
data
,
&
datalen
,
fIgnoreHKCU
,
0
,
0
)
))
{
fIgnoreHKCU
,
0
,
0
))
{
/* process returned data via type into bool */
/* process returned data via type into bool */
switch
(
type
)
{
switch
(
type
)
{
case
REG_SZ
:
case
REG_SZ
:
...
@@ -687,7 +686,6 @@ BOOL WINAPI SHRegGetBoolUSValueW(
...
@@ -687,7 +686,6 @@ BOOL WINAPI SHRegGetBoolUSValueW(
static
const
WCHAR
wTRUE
[]
=
{
'T'
,
'R'
,
'U'
,
'E'
,
'\0'
};
static
const
WCHAR
wTRUE
[]
=
{
'T'
,
'R'
,
'U'
,
'E'
,
'\0'
};
static
const
WCHAR
wNO
[]
=
{
'N'
,
'O'
,
'\0'
};
static
const
WCHAR
wNO
[]
=
{
'N'
,
'O'
,
'\0'
};
static
const
WCHAR
wFALSE
[]
=
{
'F'
,
'A'
,
'L'
,
'S'
,
'E'
,
'\0'
};
static
const
WCHAR
wFALSE
[]
=
{
'F'
,
'A'
,
'L'
,
'S'
,
'E'
,
'\0'
};
LONG
retvalue
;
DWORD
type
,
datalen
,
work
;
DWORD
type
,
datalen
,
work
;
BOOL
ret
=
fDefault
;
BOOL
ret
=
fDefault
;
WCHAR
data
[
10
];
WCHAR
data
[
10
];
...
@@ -697,9 +695,9 @@ BOOL WINAPI SHRegGetBoolUSValueW(
...
@@ -697,9 +695,9 @@ BOOL WINAPI SHRegGetBoolUSValueW(
(
fIgnoreHKCU
)
?
"Ignoring HKCU"
:
"Tries HKCU then HKLM"
);
(
fIgnoreHKCU
)
?
"Ignoring HKCU"
:
"Tries HKCU then HKLM"
);
datalen
=
(
sizeof
(
data
)
-
1
)
*
sizeof
(
WCHAR
);
datalen
=
(
sizeof
(
data
)
-
1
)
*
sizeof
(
WCHAR
);
if
(
!
(
retvalue
=
SHRegGetUSValueW
(
pszSubKey
,
pszValue
,
&
type
,
if
(
!
SHRegGetUSValueW
(
pszSubKey
,
pszValue
,
&
type
,
data
,
&
datalen
,
data
,
&
datalen
,
fIgnoreHKCU
,
0
,
0
)
))
{
fIgnoreHKCU
,
0
,
0
))
{
/* process returned data via type into bool */
/* process returned data via type into bool */
switch
(
type
)
{
switch
(
type
)
{
case
REG_SZ
:
case
REG_SZ
:
...
...
dlls/shlwapi/url.c
View file @
af3055e2
...
@@ -2153,7 +2153,6 @@ HRESULT WINAPI UrlGetPartW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut,
...
@@ -2153,7 +2153,6 @@ HRESULT WINAPI UrlGetPartW(LPCWSTR pszIn, LPWSTR pszOut, LPDWORD pcchOut,
BOOL
WINAPI
PathIsURLA
(
LPCSTR
lpstrPath
)
BOOL
WINAPI
PathIsURLA
(
LPCSTR
lpstrPath
)
{
{
PARSEDURLA
base
;
PARSEDURLA
base
;
DWORD
res1
;
TRACE
(
"%s
\n
"
,
debugstr_a
(
lpstrPath
));
TRACE
(
"%s
\n
"
,
debugstr_a
(
lpstrPath
));
...
@@ -2161,7 +2160,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
...
@@ -2161,7 +2160,7 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
/* get protocol */
/* get protocol */
base
.
cbSize
=
sizeof
(
base
);
base
.
cbSize
=
sizeof
(
base
);
res1
=
ParseURLA
(
lpstrPath
,
&
base
);
ParseURLA
(
lpstrPath
,
&
base
);
return
(
base
.
nScheme
!=
URL_SCHEME_INVALID
);
return
(
base
.
nScheme
!=
URL_SCHEME_INVALID
);
}
}
...
@@ -2173,7 +2172,6 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
...
@@ -2173,7 +2172,6 @@ BOOL WINAPI PathIsURLA(LPCSTR lpstrPath)
BOOL
WINAPI
PathIsURLW
(
LPCWSTR
lpstrPath
)
BOOL
WINAPI
PathIsURLW
(
LPCWSTR
lpstrPath
)
{
{
PARSEDURLW
base
;
PARSEDURLW
base
;
DWORD
res1
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpstrPath
));
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpstrPath
));
...
@@ -2181,7 +2179,7 @@ BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
...
@@ -2181,7 +2179,7 @@ BOOL WINAPI PathIsURLW(LPCWSTR lpstrPath)
/* get protocol */
/* get protocol */
base
.
cbSize
=
sizeof
(
base
);
base
.
cbSize
=
sizeof
(
base
);
res1
=
ParseURLW
(
lpstrPath
,
&
base
);
ParseURLW
(
lpstrPath
,
&
base
);
return
(
base
.
nScheme
!=
URL_SCHEME_INVALID
);
return
(
base
.
nScheme
!=
URL_SCHEME_INVALID
);
}
}
...
...
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