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
4ce467ff
Commit
4ce467ff
authored
Jun 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsproxy: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5831a0bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
Makefile.in
dlls/jsproxy/Makefile.in
+2
-0
main.c
dlls/jsproxy/main.c
+7
-11
No files found.
dlls/jsproxy/Makefile.in
View file @
4ce467ff
...
...
@@ -2,6 +2,8 @@ MODULE = jsproxy.dll
IMPORTS
=
uuid oleaut32 ole32 ws2_32
IMPORTLIB
=
jsproxy
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
main.c
...
...
dlls/jsproxy/main.c
View file @
4ce467ff
...
...
@@ -16,9 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <sys/types.h>
...
...
@@ -35,7 +32,6 @@
#include "activscp.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
static
HINSTANCE
instance
;
...
...
@@ -275,7 +271,7 @@ static HRESULT WINAPI dispex_GetNameSpaceParent(
static
HRESULT
WINAPI
dispex_GetDispID
(
IDispatchEx
*
iface
,
BSTR
name
,
DWORD
flags
,
DISPID
*
id
)
{
if
(
!
strcmpW
(
name
,
dns_resolveW
))
if
(
!
l
strcmpW
(
name
,
dns_resolveW
))
{
*
id
=
DISPID_GLOBAL_DNSRESOLVE
;
return
S_OK
;
...
...
@@ -299,9 +295,9 @@ static char *get_computer_name( COMPUTER_NAME_FORMAT format )
return
ret
;
}
static
void
printf_addr
(
const
WCHAR
*
fmt
,
WCHAR
*
buf
,
struct
sockaddr_in
*
addr
)
static
void
printf_addr
(
const
WCHAR
*
fmt
,
WCHAR
*
buf
,
SIZE_T
size
,
struct
sockaddr_in
*
addr
)
{
s
printfW
(
buf
,
fmt
,
s
wprintf
(
buf
,
size
,
fmt
,
(
unsigned
int
)(
ntohl
(
addr
->
sin_addr
.
s_addr
)
>>
24
&
0xff
),
(
unsigned
int
)(
ntohl
(
addr
->
sin_addr
.
s_addr
)
>>
16
&
0xff
),
(
unsigned
int
)(
ntohl
(
addr
->
sin_addr
.
s_addr
)
>>
8
&
0xff
),
...
...
@@ -333,7 +329,7 @@ static HRESULT dns_resolve( const WCHAR *hostname, VARIANT *result )
freeaddrinfo
(
ai
);
return
S_FALSE
;
}
printf_addr
(
fmtW
,
addr
,
(
struct
sockaddr_in
*
)
elem
->
ai_addr
);
printf_addr
(
fmtW
,
addr
,
ARRAY_SIZE
(
addr
),
(
struct
sockaddr_in
*
)
elem
->
ai_addr
);
freeaddrinfo
(
ai
);
V_VT
(
result
)
=
VT_BSTR
;
V_BSTR
(
result
)
=
SysAllocString
(
addr
);
...
...
@@ -412,7 +408,7 @@ static HRESULT WINAPI site_GetItemInfo(
IActiveScriptSite
*
iface
,
LPCOLESTR
name
,
DWORD
mask
,
IUnknown
**
item
,
ITypeInfo
**
type_info
)
{
if
(
!
strcmpW
(
name
,
global_funcsW
)
&&
mask
==
SCRIPTINFO_IUNKNOWN
)
if
(
!
l
strcmpW
(
name
,
global_funcsW
)
&&
mask
==
SCRIPTINFO_IUNKNOWN
)
{
*
item
=
(
IUnknown
*
)
&
global_dispex
;
return
S_OK
;
...
...
@@ -488,9 +484,9 @@ static BSTR include_pac_utils( const WCHAR *script )
data
=
LoadResource
(
hmod
,
rsrc
);
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
data
,
size
,
NULL
,
0
);
if
(
!
(
ret
=
SysAllocStringLen
(
NULL
,
len
+
strlenW
(
script
)
+
1
)))
return
NULL
;
if
(
!
(
ret
=
SysAllocStringLen
(
NULL
,
len
+
l
strlenW
(
script
)
+
1
)))
return
NULL
;
MultiByteToWideChar
(
CP_ACP
,
0
,
data
,
size
,
ret
,
len
);
strcpyW
(
ret
+
len
,
script
);
l
strcpyW
(
ret
+
len
,
script
);
return
ret
;
}
...
...
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