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
0666ac3e
Commit
0666ac3e
authored
Oct 22, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Use BOOL type where appropriate.
parent
411ef80a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
11 deletions
+13
-11
classes.c
dlls/shell32/classes.c
+2
-2
control.c
dlls/shell32/control.c
+2
-2
shellstring.c
dlls/shell32/shellstring.c
+1
-1
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+4
-3
shlview_cmenu.c
dlls/shell32/shlview_cmenu.c
+2
-1
xdg.c
dlls/shell32/xdg.c
+1
-1
No files found.
dlls/shell32/classes.c
View file @
0666ac3e
...
...
@@ -58,7 +58,7 @@ BOOL HCR_MapTypeToValueW(LPCWSTR szExtension, LPWSTR szFileType, LONG len, BOOL
/* added because we do not want to have double dots */
if
(
szExtension
[
0
]
==
'.'
)
bPrependDot
=
0
;
bPrependDot
=
FALSE
;
if
(
bPrependDot
)
szTemp
[
0
]
=
'.'
;
...
...
@@ -92,7 +92,7 @@ BOOL HCR_MapTypeToValueA(LPCSTR szExtension, LPSTR szFileType, LONG len, BOOL bP
/* added because we do not want to have double dots */
if
(
szExtension
[
0
]
==
'.'
)
bPrependDot
=
0
;
bPrependDot
=
FALSE
;
if
(
bPrependDot
)
szTemp
[
0
]
=
'.'
;
...
...
dlls/shell32/control.c
View file @
0666ac3e
...
...
@@ -711,7 +711,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
signed
sp
=
-
1
;
LPWSTR
extraPmtsBuf
=
NULL
;
LPWSTR
extraPmts
=
NULL
;
int
quoted
=
0
;
BOOL
quoted
=
FALSE
;
CPlApplet
*
applet
;
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
lstrlenW
(
wszCmd
)
+
1
)
*
sizeof
(
*
wszCmd
));
...
...
@@ -746,7 +746,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
if
(
extraPmtsBuf
!=
NULL
)
{
beg
=
end
=
extraPmtsBuf
;
quoted
=
0
;
quoted
=
FALSE
;
for
(;;)
{
ch
=
*
end
;
...
...
dlls/shell32/shellstring.c
View file @
0666ac3e
...
...
@@ -209,7 +209,7 @@ static BOOL OleStrToStrNW (LPWSTR lpwStr, INT nwStr, LPCWSTR lpOle, INT nOle)
if
(
lstrcpynW
(
lpwStr
,
lpOle
,
nwStr
))
{
return
lstrlenW
(
lpwStr
);
}
return
0
;
return
FALSE
;
}
BOOL
WINAPI
OleStrToStrNAW
(
LPVOID
lpOut
,
INT
nOut
,
LPCVOID
lpIn
,
INT
nIn
)
...
...
dlls/shell32/shfldr_fs.c
View file @
0666ac3e
...
...
@@ -1138,7 +1138,7 @@ ISFHelper_fnAddFolder (ISFHelper * iface, HWND hwnd, LPCWSTR pwszName,
{
IGenericSFImpl
*
This
=
impl_from_ISFHelper
(
iface
);
WCHAR
wszNewDir
[
MAX_PATH
];
DWORD
bRes
;
BOOL
bRes
;
HRESULT
hres
=
E_FAIL
;
TRACE
(
"(%p)(%s %p)
\n
"
,
This
,
debugstr_w
(
pwszName
),
ppidlOut
);
...
...
dlls/shell32/shfldr_mycomp.c
View file @
0666ac3e
...
...
@@ -255,7 +255,8 @@ static DWORD get_drive_map(void)
'P'
,
'o'
,
'l'
,
'i'
,
'c'
,
'i'
,
'e'
,
's'
,
'\\'
,
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
nodrivesW
[]
=
{
'N'
,
'o'
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
's'
,
0
};
static
DWORD
drive_mask
,
init_done
;
static
DWORD
drive_mask
;
static
BOOL
init_done
=
FALSE
;
if
(
!
init_done
)
{
...
...
@@ -277,7 +278,7 @@ static DWORD get_drive_map(void)
RegCloseKey
(
hkey
);
}
drive_mask
=
mask
;
init_done
=
1
;
init_done
=
TRUE
;
}
return
GetLogicalDrives
()
&
~
drive_mask
;
...
...
@@ -626,7 +627,7 @@ static HRESULT WINAPI ISF_MyComputer_fnGetDisplayNameOf (IShellFolder2 *iface,
static
const
WCHAR
wantsForParsingW
[]
=
{
'W'
,
'a'
,
'n'
,
't'
,
's'
,
'F'
,
'o'
,
'r'
,
'P'
,
'a'
,
'r'
,
's'
,
'i'
,
'n'
,
'g'
,
0
};
int
bWantsForParsing
=
FALSE
;
BOOL
bWantsForParsing
=
FALSE
;
WCHAR
szRegPath
[
100
];
LONG
r
;
...
...
dlls/shell32/shlview_cmenu.c
View file @
0666ac3e
...
...
@@ -203,7 +203,8 @@ static HRESULT WINAPI ItemMenu_QueryContextMenu(
static
void
DoOpenExplore
(
ContextMenu
*
This
,
HWND
hwnd
,
LPCSTR
verb
)
{
UINT
i
,
bFolderFound
=
FALSE
;
UINT
i
;
BOOL
bFolderFound
=
FALSE
;
LPITEMIDLIST
pidlFQ
;
SHELLEXECUTEINFOA
sei
;
...
...
dlls/shell32/xdg.c
View file @
0666ac3e
...
...
@@ -282,7 +282,7 @@ BOOL XDG_MakeDirs(const char *path)
*/
static
int
dskentry_encode
(
const
char
*
value
,
char
*
output
)
{
int
only_spc
=
TRUE
;
BOOL
only_spc
=
TRUE
;
int
num_written
=
0
;
const
char
*
c
;
for
(
c
=
value
;
*
c
;
c
++
)
...
...
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