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
da15e5cb
Commit
da15e5cb
authored
Jun 13, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mstask: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
39c9a451
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
Makefile.in
dlls/mstask/Makefile.in
+2
-0
mstask_private.h
dlls/mstask/mstask_private.h
+1
-2
task.c
dlls/mstask/task.c
+3
-3
task_scheduler.c
dlls/mstask/task_scheduler.c
+2
-2
No files found.
dlls/mstask/Makefile.in
View file @
da15e5cb
MODULE
=
mstask.dll
MODULE
=
mstask.dll
IMPORTS
=
rpcrt4 ole32 oleaut32
IMPORTS
=
rpcrt4 ole32 oleaut32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
C_SRCS
=
\
factory.c
\
factory.c
\
mstask_main.c
\
mstask_main.c
\
...
...
dlls/mstask/mstask_private.h
View file @
da15e5cb
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
#define __MSTASK_PRIVATE_H__
#define __MSTASK_PRIVATE_H__
#include "wine/heap.h"
#include "wine/heap.h"
#include "wine/unicode.h"
extern
LONG
dll_ref
DECLSPEC_HIDDEN
;
extern
LONG
dll_ref
DECLSPEC_HIDDEN
;
...
@@ -38,7 +37,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *src)
...
@@ -38,7 +37,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *src)
WCHAR
*
dst
;
WCHAR
*
dst
;
unsigned
len
;
unsigned
len
;
if
(
!
src
)
return
NULL
;
if
(
!
src
)
return
NULL
;
len
=
(
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
);
len
=
(
l
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
);
if
((
dst
=
heap_alloc
(
len
)))
memcpy
(
dst
,
src
,
len
);
if
((
dst
=
heap_alloc
(
len
)))
memcpy
(
dst
,
src
,
len
);
return
dst
;
return
dst
;
}
}
...
...
dlls/mstask/task.c
View file @
da15e5cb
...
@@ -1813,10 +1813,10 @@ static HRESULT WINAPI MSTASK_IPersistFile_GetCurFile(IPersistFile *iface, LPOLES
...
@@ -1813,10 +1813,10 @@ static HRESULT WINAPI MSTASK_IPersistFile_GetCurFile(IPersistFile *iface, LPOLES
TRACE
(
"(%p, %p)
\n
"
,
iface
,
file_name
);
TRACE
(
"(%p, %p)
\n
"
,
iface
,
file_name
);
*
file_name
=
CoTaskMemAlloc
((
strlenW
(
This
->
task_name
)
+
1
)
*
sizeof
(
WCHAR
));
*
file_name
=
CoTaskMemAlloc
((
l
strlenW
(
This
->
task_name
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!*
file_name
)
return
E_OUTOFMEMORY
;
if
(
!*
file_name
)
return
E_OUTOFMEMORY
;
strcpyW
(
*
file_name
,
This
->
task_name
);
l
strcpyW
(
*
file_name
,
This
->
task_name
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -1893,7 +1893,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
...
@@ -1893,7 +1893,7 @@ HRESULT TaskConstructor(ITaskService *service, const WCHAR *name, ITask **task)
TRACE
(
"(%s, %p)
\n
"
,
debugstr_w
(
name
),
task
);
TRACE
(
"(%s, %p)
\n
"
,
debugstr_w
(
name
),
task
);
if
(
strchrW
(
name
,
'.'
))
return
E_INVALIDARG
;
if
(
wcschr
(
name
,
'.'
))
return
E_INVALIDARG
;
GetWindowsDirectoryW
(
task_name
,
MAX_PATH
);
GetWindowsDirectoryW
(
task_name
,
MAX_PATH
);
lstrcatW
(
task_name
,
tasksW
);
lstrcatW
(
task_name
,
tasksW
);
...
...
dlls/mstask/task_scheduler.c
View file @
da15e5cb
...
@@ -423,7 +423,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_Delete(ITaskScheduler *iface, LPCWST
...
@@ -423,7 +423,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_Delete(ITaskScheduler *iface, LPCWST
TRACE
(
"%p, %s
\n
"
,
iface
,
debugstr_w
(
name
));
TRACE
(
"%p, %s
\n
"
,
iface
,
debugstr_w
(
name
));
if
(
strchrW
(
name
,
'.'
))
return
E_INVALIDARG
;
if
(
wcschr
(
name
,
'.'
))
return
E_INVALIDARG
;
GetWindowsDirectoryW
(
task_name
,
MAX_PATH
);
GetWindowsDirectoryW
(
task_name
,
MAX_PATH
);
lstrcatW
(
task_name
,
tasksW
);
lstrcatW
(
task_name
,
tasksW
);
...
@@ -467,7 +467,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_AddWorkItem(ITaskScheduler *iface, L
...
@@ -467,7 +467,7 @@ static HRESULT WINAPI MSTASK_ITaskScheduler_AddWorkItem(ITaskScheduler *iface, L
TRACE
(
"%p, %s, %p
\n
"
,
iface
,
debugstr_w
(
name
),
item
);
TRACE
(
"%p, %s, %p
\n
"
,
iface
,
debugstr_w
(
name
),
item
);
if
(
strchrW
(
name
,
'.'
))
return
E_INVALIDARG
;
if
(
wcschr
(
name
,
'.'
))
return
E_INVALIDARG
;
GetWindowsDirectoryW
(
task_name
,
MAX_PATH
);
GetWindowsDirectoryW
(
task_name
,
MAX_PATH
);
lstrcatW
(
task_name
,
tasksW
);
lstrcatW
(
task_name
,
tasksW
);
...
...
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