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
bf4456df
Commit
bf4456df
authored
Oct 07, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mspatcha: Add a stub implementation of GetFilePatchSignatureA/W.
parent
f0a3a09d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
3 deletions
+42
-3
mspatcha.spec
dlls/mspatcha/mspatcha.spec
+2
-2
mspatcha_main.c
dlls/mspatcha/mspatcha_main.c
+27
-1
patchapi.h
include/patchapi.h
+13
-0
No files found.
dlls/mspatcha/mspatcha.spec
View file @
bf4456df
...
...
@@ -4,9 +4,9 @@
4 stub ApplyPatchToFileExA
5 stub ApplyPatchToFileExW
6 stdcall ApplyPatchToFileW(wstr wstr wstr long)
7 st
ub GetFilePatchSignatureA
7 st
dcall GetFilePatchSignatureA(str long ptr long ptr long ptr long ptr)
8 stub GetFilePatchSignatureByHandle
9 st
ub GetFilePatchSignatureW
9 st
dcall GetFilePatchSignatureW(wstr long ptr long ptr long ptr long ptr)
10 stub TestApplyPatchToFileA
11 stub TestApplyPatchToFileByHandles
12 stub TestApplyPatchToFileW
dlls/mspatcha/mspatcha_main.c
View file @
bf4456df
...
...
@@ -64,7 +64,7 @@ static inline WCHAR *strdupAW( const char *src )
}
/*****************************************************
* ApplyPatchToFileA (MSPATCHA.
6
)
* ApplyPatchToFileA (MSPATCHA.
1
)
*/
BOOL
WINAPI
ApplyPatchToFileA
(
LPCSTR
patch_file
,
LPCSTR
old_file
,
LPCSTR
new_file
,
ULONG
apply_flags
)
{
...
...
@@ -101,3 +101,29 @@ BOOL WINAPI ApplyPatchToFileW(LPCWSTR patch_file, LPCWSTR old_file, LPCWSTR new_
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/*****************************************************
* GetFilePatchSignatureA (MSPATCHA.7)
*/
BOOL
WINAPI
GetFilePatchSignatureA
(
LPCSTR
filename
,
ULONG
flags
,
PVOID
data
,
ULONG
ignore_range_count
,
PPATCH_IGNORE_RANGE
ignore_range
,
ULONG
retain_range_count
,
PPATCH_RETAIN_RANGE
retain_range
,
ULONG
bufsize
,
LPSTR
buffer
)
{
FIXME
(
"stub - %s, %x, %p, %u, %p, %u, %p, %u, %p
\n
"
,
debugstr_a
(
filename
),
flags
,
data
,
ignore_range_count
,
ignore_range
,
retain_range_count
,
retain_range
,
bufsize
,
buffer
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/*****************************************************
* GetFilePatchSignatureW (MSPATCHA.9)
*/
BOOL
WINAPI
GetFilePatchSignatureW
(
LPCWSTR
filename
,
ULONG
flags
,
PVOID
data
,
ULONG
ignore_range_count
,
PPATCH_IGNORE_RANGE
ignore_range
,
ULONG
retain_range_count
,
PPATCH_RETAIN_RANGE
retain_range
,
ULONG
bufsize
,
LPWSTR
buffer
)
{
FIXME
(
"stub - %s, %x, %p, %u, %p, %u, %p, %u, %p
\n
"
,
debugstr_w
(
filename
),
flags
,
data
,
ignore_range_count
,
ignore_range
,
retain_range_count
,
retain_range
,
bufsize
,
buffer
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
include/patchapi.h
View file @
bf4456df
...
...
@@ -28,6 +28,19 @@ extern "C" {
#define APPLY_OPTION_TEST_ONLY 0x00000004
#define APPLY_OPTION_VALID_FLAGS 0x00000007
typedef
struct
_PATCH_IGNORE_RANGE
{
ULONG
OffsetInOldFile
;
ULONG
LengthInBytes
;
}
PATCH_IGNORE_RANGE
,
*
PPATCH_IGNORE_RANGE
;
typedef
struct
_PATCH_RETAIN_RANGE
{
ULONG
OffsetInOldFile
;
ULONG
LengthInBytes
;
ULONG
OffsetInNewFile
;
}
PATCH_RETAIN_RANGE
,
*
PPATCH_RETAIN_RANGE
;
BOOL
WINAPI
ApplyPatchToFileA
(
LPCSTR
,
LPCSTR
,
LPCSTR
,
ULONG
);
BOOL
WINAPI
ApplyPatchToFileW
(
LPCWSTR
,
LPCWSTR
,
LPCWSTR
,
ULONG
);
#define ApplyPatchToFile WINELIB_NAME_AW(ApplyPatchToFile)
...
...
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