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
5fa132c6
Commit
5fa132c6
authored
Jan 21, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Jan 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Implement DelNodeRunDLL32.
parent
93cb78f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
5 deletions
+44
-5
files.c
dlls/advpack/files.c
+44
-5
No files found.
dlls/advpack/files.c
View file @
5fa132c6
...
...
@@ -19,6 +19,7 @@
*/
#include <stdarg.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
...
...
@@ -289,6 +290,31 @@ HRESULT WINAPI DelNode( LPCSTR pszFileOrDirName, DWORD dwFlags )
return
ret
;
}
/* returns the parameter at dwIndex in a list of parameters
* separated by the cSeparator character
*/
static
LPSTR
get_parameter
(
LPSTR
szParameters
,
CHAR
cSeparator
,
DWORD
dwIndex
)
{
LPSTR
szParam
=
NULL
;
DWORD
i
=
0
;
while
(
*
szParameters
&&
i
<
dwIndex
)
{
if
(
*
szParameters
==
cSeparator
)
i
++
;
szParameters
++
;
}
if
(
!*
szParameters
)
return
NULL
;
szParam
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lstrlenA
(
szParameters
));
lstrcpyA
(
szParam
,
szParameters
);
return
szParam
;
}
/***********************************************************************
* DelNodeRunDLL32 (ADVPACK.@)
*
...
...
@@ -303,14 +329,27 @@ HRESULT WINAPI DelNode( LPCSTR pszFileOrDirName, DWORD dwFlags )
* RETURNS
* Success: S_OK.
* Failure: E_FAIL.
*
* BUGS
* Unimplemented
*/
HRESULT
WINAPI
DelNodeRunDLL32
(
HWND
hWnd
,
HINSTANCE
hInst
,
LPSTR
cmdline
,
INT
show
)
{
FIXME
(
"(%s): stub
\n
"
,
debugstr_a
(
cmdline
));
return
E_FAIL
;
LPSTR
szFilename
,
szFlags
;
DWORD
dwFlags
;
HRESULT
res
;
TRACE
(
"(%s)
\n
"
,
debugstr_a
(
cmdline
));
/* get the parameters at indexes 0 and 1 respectively */
szFilename
=
get_parameter
(
cmdline
,
','
,
0
);
szFlags
=
get_parameter
(
cmdline
,
','
,
1
);
dwFlags
=
atol
(
szFlags
);
res
=
DelNode
(
szFilename
,
dwFlags
);
HeapFree
(
GetProcessHeap
(),
0
,
szFilename
);
HeapFree
(
GetProcessHeap
(),
0
,
szFlags
);
return
res
;
}
/* The following defintions were copied from dlls/cabinet/cabinet.h */
...
...
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