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
d6d38f15
Commit
d6d38f15
authored
Jun 19, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qmgr: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bd00160c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
Makefile.in
dlls/qmgr/Makefile.in
+2
-0
file.c
dlls/qmgr/file.c
+1
-1
job.c
dlls/qmgr/job.c
+2
-2
qmgr.h
dlls/qmgr/qmgr.h
+6
-7
No files found.
dlls/qmgr/Makefile.in
View file @
d6d38f15
MODULE
=
qmgr.dll
IMPORTS
=
uuid winhttp ole32 advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
enum_files.c
\
enum_jobs.c
\
...
...
dlls/qmgr/file.c
View file @
d6d38f15
...
...
@@ -459,7 +459,7 @@ static BOOL transfer_file_local(BackgroundCopyFileImpl *file, const WCHAR *tmpna
transitionJobState
(
job
,
BG_JOB_STATE_QUEUED
,
BG_JOB_STATE_TRANSFERRING
);
if
(
strlenW
(
file
->
info
.
RemoteName
)
>
7
&&
!
strncmpiW
(
file
->
info
.
RemoteName
,
fileW
,
7
))
if
(
lstrlenW
(
file
->
info
.
RemoteName
)
>
7
&&
!
wcsnicmp
(
file
->
info
.
RemoteName
,
fileW
,
7
))
ptr
=
file
->
info
.
RemoteName
+
7
;
else
ptr
=
file
->
info
.
RemoteName
;
...
...
dlls/qmgr/job.c
View file @
d6d38f15
...
...
@@ -599,7 +599,7 @@ static HRESULT WINAPI BackgroundCopyJob_SetDescription(
if
(
!
Val
)
return
E_INVALIDARG
;
len
=
strlenW
(
Val
);
len
=
l
strlenW
(
Val
);
if
(
len
>
max_description_len
)
return
BG_E_STRING_TOO_LONG
;
EnterCriticalSection
(
&
This
->
cs
);
...
...
@@ -612,7 +612,7 @@ static HRESULT WINAPI BackgroundCopyJob_SetDescription(
{
HeapFree
(
GetProcessHeap
(),
0
,
This
->
description
);
if
((
This
->
description
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
len
+
1
)
*
sizeof
(
WCHAR
))))
strcpyW
(
This
->
description
,
Val
);
l
strcpyW
(
This
->
description
,
Val
);
else
hr
=
E_OUTOFMEMORY
;
}
...
...
dlls/qmgr/qmgr.h
View file @
d6d38f15
...
...
@@ -31,7 +31,6 @@
#include <string.h>
#include "wine/list.h"
#include "wine/unicode.h"
/* Background copy job vtbl and related data */
typedef
struct
...
...
@@ -118,15 +117,15 @@ BOOL transitionJobState(BackgroundCopyJobImpl *job, BG_JOB_STATE from, BG_JOB_ST
/* Little helper functions */
static
inline
WCHAR
*
strdupW
(
const
WCHAR
*
src
)
{
WCHAR
*
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
dst
)
strcpyW
(
dst
,
src
);
WCHAR
*
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
l
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
dst
)
l
strcpyW
(
dst
,
src
);
return
dst
;
}
static
inline
WCHAR
*
co_strdupW
(
const
WCHAR
*
src
)
{
WCHAR
*
dst
=
CoTaskMemAlloc
((
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
dst
)
strcpyW
(
dst
,
src
);
WCHAR
*
dst
=
CoTaskMemAlloc
((
l
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
dst
)
l
strcpyW
(
dst
,
src
);
return
dst
;
}
...
...
@@ -136,10 +135,10 @@ static inline HRESULT return_strval(const WCHAR *str, WCHAR **ret)
if
(
!
ret
)
return
E_INVALIDARG
;
len
=
strlenW
(
str
);
len
=
l
strlenW
(
str
);
*
ret
=
CoTaskMemAlloc
((
len
+
1
)
*
sizeof
(
WCHAR
));
if
(
!*
ret
)
return
E_OUTOFMEMORY
;
strcpyW
(
*
ret
,
str
);
l
strcpyW
(
*
ret
,
str
);
return
S_OK
;
}
...
...
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