Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d1e3d8d8
Commit
d1e3d8d8
authored
Jan 23, 2000
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 23, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced LocalToWideChar() by lstrcpynAtoW(), WideCharToLocal() by
lstrcpynWtoA().
parent
7e70e56b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
41 deletions
+4
-41
pidl.c
dlls/shell32/pidl.c
+2
-2
shlfolder.c
dlls/shell32/shlfolder.c
+2
-2
winestring.h
include/wine/winestring.h
+0
-2
string.c
memory/string.c
+0
-35
No files found.
dlls/shell32/pidl.c
View file @
d1e3d8d8
...
...
@@ -287,7 +287,7 @@ HRESULT WINAPI SHILCreateFromPathA (LPCSTR path, LPITEMIDLIST * ppidl, DWORD * a
TRACE_
(
shell
)(
"%s %p 0x%08lx
\n
"
,
path
,
ppidl
,
attributes
?*
attributes
:
0
);
LocalToWideChar
(
lpszDisplayName
,
path
,
MAX_PATH
);
lstrcpynAtoW
(
lpszDisplayName
,
path
,
MAX_PATH
);
if
(
SUCCEEDED
(
SHGetDesktopFolder
(
&
sf
)))
{
...
...
@@ -763,7 +763,7 @@ LPITEMIDLIST WINAPI SHSimpleIDListFromPathW (LPWSTR lpszPath)
char
lpszTemp
[
MAX_PATH
];
TRACE
(
"path=%s
\n
"
,
debugstr_w
(
lpszPath
));
WideCharToLocal
(
lpszTemp
,
lpszPath
,
MAX_PATH
);
lstrcpynWtoA
(
lpszTemp
,
lpszPath
,
MAX_PATH
);
return
SHSimpleIDListFromPathA
(
lpszTemp
);
}
...
...
dlls/shell32/shlfolder.c
View file @
d1e3d8d8
...
...
@@ -569,7 +569,7 @@ static HRESULT WINAPI IShellFolder_fnParseDisplayName(
szNext
=
GetNextElementW
(
lpszDisplayName
,
szElement
,
MAX_PATH
);
/* build the full pathname to the element */
WideCharToLocal
(
szTempA
,
szElement
,
lstrlenW
(
szElement
)
+
1
);
lstrcpynWtoA
(
szTempA
,
szElement
,
lstrlenW
(
szElement
)
+
1
);
strcpy
(
szPath
,
This
->
sMyPath
);
PathAddBackslashA
(
szPath
);
strcat
(
szPath
,
szTempA
);
...
...
@@ -1807,7 +1807,7 @@ static HRESULT WINAPI ISF_MyComputer_fnParseDisplayName(
if
(
PathIsRootW
(
lpszDisplayName
))
{
szNext
=
GetNextElementW
(
lpszDisplayName
,
szElement
,
MAX_PATH
);
WideCharToLocal
(
szTempA
,
szElement
,
lstrlenW
(
szElement
)
+
1
);
lstrcpynWtoA
(
szTempA
,
szElement
,
lstrlenW
(
szElement
)
+
1
);
pidlTemp
=
_ILCreateDrive
(
szTempA
);
if
(
szNext
&&
*
szNext
)
...
...
include/wine/winestring.h
View file @
d1e3d8d8
...
...
@@ -3,8 +3,6 @@
#include "windef.h"
INT
WINAPI
WideCharToLocal
(
LPSTR
,
LPCWSTR
,
INT
);
INT
WINAPI
LocalToWideChar
(
LPWSTR
,
LPCSTR
,
INT
);
LPWSTR
WINAPI
lstrcpyAtoW
(
LPWSTR
,
LPCSTR
);
LPSTR
WINAPI
lstrcpyWtoA
(
LPSTR
,
LPCWSTR
);
LPWSTR
WINAPI
lstrcpynAtoW
(
LPWSTR
,
LPCSTR
,
INT
);
...
...
memory/string.c
View file @
d1e3d8d8
...
...
@@ -634,41 +634,6 @@ BOOL WINAPI OemToCharW( LPCSTR s, LPWSTR d )
}
/***********************************************************************
* WideCharToLocal (Not a Windows API)
* similar lstrcpyWtoA, should handle codepages properly
*
* RETURNS
* strlen of the destination string
*/
INT
WINAPI
WideCharToLocal
(
LPSTR
pLocal
,
LPCWSTR
pWide
,
INT
dwChars
)
{
*
pLocal
=
0
;
TRACE
(
"(%p, %s, %i)
\n
"
,
pLocal
,
debugstr_wn
(
pWide
,
dwChars
),
dwChars
);
WideCharToMultiByte
(
CP_ACP
,
0
,
pWide
,
-
1
,
pLocal
,
dwChars
,
NULL
,
NULL
);
return
strlen
(
pLocal
);
}
/***********************************************************************
* LocalToWideChar (Not a Windows API)
* similar lstrcpyAtoW, should handle codepages properly
*
* RETURNS
* strlen of the destination string
*/
INT
WINAPI
LocalToWideChar
(
LPWSTR
pWide
,
LPCSTR
pLocal
,
INT
dwChars
)
{
*
pWide
=
0
;
TRACE
(
"(%p, %s, %i)
\n
"
,
pWide
,
debugstr_an
(
pLocal
,
dwChars
),
dwChars
);
MultiByteToWideChar
(
CP_ACP
,
0
,
pLocal
,
-
1
,
pWide
,
dwChars
);
return
lstrlenW
(
pWide
);
}
/***********************************************************************
* lstrrchr (Not a Windows API)
*
* This is the implementation meant to be invoked from within
...
...
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