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
5d6f01b7
Commit
5d6f01b7
authored
Jul 17, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Rename WININET_strdup_WtoA to heap_strdupWtoA.
parent
e09dfcfa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
ftp.c
dlls/wininet/ftp.c
+1
-1
internet.h
dlls/wininet/internet.h
+10
-5
utility.c
dlls/wininet/utility.c
+1
-1
No files found.
dlls/wininet/ftp.c
View file @
5d6f01b7
...
...
@@ -2609,7 +2609,7 @@ static BOOL FTP_SendCommand(INT nSocket, FTP_COMMAND ftpCmd, LPCWSTR lpszParam,
INTERNET_STATUS_CALLBACK
lpfnStatusCB
,
object_header_t
*
hdr
,
DWORD_PTR
dwContext
)
{
BOOL
ret
;
LPSTR
lpszParamA
=
lpszParam
?
WININET_strdup_WtoA
(
lpszParam
)
:
NULL
;
LPSTR
lpszParamA
=
heap_strdupWtoA
(
lpszParam
)
;
ret
=
FTP_SendCommandA
(
nSocket
,
ftpCmd
,
lpszParamA
,
lpfnStatusCB
,
hdr
,
dwContext
);
HeapFree
(
GetProcessHeap
(),
0
,
lpszParamA
);
return
ret
;
...
...
dlls/wininet/internet.h
View file @
5d6f01b7
...
...
@@ -87,12 +87,17 @@ static inline WCHAR *heap_strdupAtoW(const char *str)
return
ret
;
}
static
inline
LPSTR
WININET_strdup_WtoA
(
LPCWSTR
str
)
static
inline
char
*
heap_strdupWtoA
(
LPCWSTR
str
)
{
int
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
LPSTR
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
ret
)
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
,
NULL
,
NULL
);
char
*
ret
=
NULL
;
if
(
str
)
{
DWORD
size
=
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
ret
)
WideCharToMultiByte
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
size
,
NULL
,
NULL
);
}
return
ret
;
}
...
...
dlls/wininet/utility.c
View file @
5d6f01b7
...
...
@@ -324,7 +324,7 @@ VOID INTERNET_SendCallback(object_header_t *hdr, DWORD_PTR dwContext,
break
;
case
INTERNET_STATUS_RESOLVING_NAME
:
case
INTERNET_STATUS_REDIRECT
:
lpvNewInfo
=
WININET_strdup_
WtoA
(
lpvStatusInfo
);
lpvNewInfo
=
heap_strdup
WtoA
(
lpvStatusInfo
);
break
;
}
}
...
...
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