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
be90e005
Commit
be90e005
authored
Nov 22, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Nov 22, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New function: _ILGetExtension.
parent
a9a4f4e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
pidl.c
dlls/shell32/pidl.c
+22
-0
No files found.
dlls/shell32/pidl.c
View file @
be90e005
...
...
@@ -980,6 +980,28 @@ BOOL32 WINAPI _ILGetFileSize (LPCITEMIDLIST pidl, LPSTR pOut, UINT32 uOutSize)
sprintf
(
stemp
,
"%lu"
,
pdata
->
u
.
file
.
dwFileSize
);
return
GetNumberFormat32A
(
LOCALE_USER_DEFAULT
,
0
,
stemp
,
NULL
,
pOut
,
uOutSize
);
}
BOOL32
WINAPI
_ILGetExtension
(
LPCITEMIDLIST
pidl
,
LPSTR
pOut
,
UINT32
uOutSize
)
{
char
pTemp
[
MAX_PATH
];
int
i
;
TRACE
(
pidl
,
"pidl=%p
\n
"
,
pidl
);
if
(
!
_ILGetValueText
(
pidl
,
pTemp
,
MAX_PATH
))
{
return
FALSE
;
}
for
(
i
=
0
;
pTemp
[
i
]
!=
'.'
&&
pTemp
[
i
];
i
++
);
if
(
!
pTemp
[
i
])
return
FALSE
;
strncpy
(
pOut
,
&
pTemp
[
i
],
uOutSize
);
TRACE
(
pidl
,
"%s
\n
"
,
pOut
);
return
TRUE
;
}
/**************************************************************************
* IDLList "Item ID List List"
*
...
...
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