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
247457c1
Commit
247457c1
authored
Dec 06, 2002
by
Rolf Kalbermatter
Committed by
Alexandre Julliard
Dec 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement ParseFieldW function based on its ANSI sibling.
parent
bc8bd722
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
shell32_main.h
dlls/shell32/shell32_main.h
+2
-1
shellord.c
dlls/shell32/shellord.c
+19
-3
No files found.
dlls/shell32/shell32_main.h
View file @
247457c1
...
...
@@ -64,7 +64,8 @@ BOOL HCR_GetClassName (REFIID riid, LPSTR szDest, DWORD len);
BOOL
HCR_GetFolderAttributes
(
REFIID
riid
,
LPDWORD
szDest
);
INT_PTR
CALLBACK
AboutDlgProc
(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
DWORD
WINAPI
ParseFieldA
(
LPCSTR
src
,
DWORD
field
,
LPSTR
dst
,
DWORD
len
);
DWORD
WINAPI
ParseFieldA
(
LPCSTR
src
,
DWORD
nField
,
LPSTR
dst
,
DWORD
len
);
DWORD
WINAPI
ParseFieldW
(
LPCWSTR
src
,
DWORD
nField
,
LPWSTR
dst
,
DWORD
len
);
/****************************************************************************
* Class constructors
...
...
dlls/shell32/shellord.c
View file @
247457c1
...
...
@@ -107,9 +107,25 @@ DWORD WINAPI ParseFieldA(
*/
DWORD
WINAPI
ParseFieldW
(
LPCWSTR
src
,
DWORD
nField
,
LPWSTR
dst
,
DWORD
len
)
{
FIXME
(
"(%s,0x%08lx,%p,%ld) stub
\n
"
,
debugstr_w
(
src
),
nField
,
dst
,
len
);
return
FALSE
;
WARN
(
"(%s,0x%08lx,%p,%ld) semi-stub.
\n
"
,
debugstr_w
(
src
),
nField
,
dst
,
len
);
if
(
!
src
||
!
src
[
0
]
||
!
dst
||
!
len
)
return
0
;
/* skip n fields delimited by ',' */
while
(
nField
>
1
)
{
if
(
*
src
==
0x0
)
return
FALSE
;
if
(
*
src
++
==
','
)
nField
--
;
}
/* copy part till the next ',' to dst */
while
(
*
src
!=
0x0
&&
*
src
!=
','
&&
(
len
--
)
>
0
)
*
(
dst
++
)
=
*
(
src
++
);
/* finalize the string */
*
dst
=
0x0
;
return
TRUE
;
}
/*************************************************************************
...
...
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