Skip to content

Commit

Permalink
kernel32: Add semi-stub for CreateFileTransactedA/W()
Browse files Browse the repository at this point in the history
  • Loading branch information
Etaash-mathamsetty authored and IsaacMarovitz committed Jun 14, 2024
1 parent abb9e6a commit 776103e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlls/kernel32/kernel32.spec
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,13 @@
@ stdcall -import CreateFiberEx(long long long ptr ptr)
@ stdcall -import CreateFile2(wstr long long long ptr)
@ stdcall -import CreateFileA(str long long ptr long long long)
@ stdcall CreateFileTransactedA(str long long ptr long long long ptr ptr ptr)
@ stdcall CreateFileMappingA(long ptr long long long str)
# @ stub CreateFileMappingNumaA
@ stdcall -import CreateFileMappingNumaW(long ptr long long long wstr long)
@ stdcall -import CreateFileMappingW(long ptr long long long wstr)
@ stdcall -import CreateFileW(wstr long long ptr long long long)
@ stdcall CreateFileTransactedW(wstr long long ptr long long long ptr ptr ptr)
@ stdcall -import CreateHardLinkA(str str ptr)
@ stdcall CreateHardLinkTransactedA(str str ptr ptr)
@ stdcall CreateHardLinkTransactedW(wstr wstr ptr ptr)
Expand Down
25 changes: 25 additions & 0 deletions dlls/kernel32/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,31 @@ BOOL WINAPI MoveFileTransactedW(const WCHAR *source, const WCHAR *dest, LPPROGRE
return FALSE;
}

/*************************************************************************
* CreateFileTransactedA (KERNEL32.@)
*/
HANDLE WINAPI DECLSPEC_HOTPATCH CreateFileTransactedA( LPCSTR name, DWORD access, DWORD sharing,
LPSECURITY_ATTRIBUTES sa, DWORD creation,
DWORD attributes, HANDLE template,
HANDLE transaction, PUSHORT version,
PVOID param )
{
FIXME("(%s %lx %lx %p %lx %lx %p %p %p %p): semi-stub\n", debugstr_a(name), access, sharing, sa, creation, attributes, template, transaction, version, param);
return CreateFileA(name, access, sharing, sa, creation, attributes, template);
}

/*************************************************************************
* CreateFileTransactedW (KERNEL32.@)
*/
HANDLE WINAPI DECLSPEC_HOTPATCH CreateFileTransactedW( LPCWSTR name, DWORD access, DWORD sharing,
LPSECURITY_ATTRIBUTES sa, DWORD creation,
DWORD attributes, HANDLE template, HANDLE transaction,
PUSHORT version, PVOID param )
{
FIXME("(%s %lx %lx %p %lx %lx %p %p %p %p): semi-stub\n", debugstr_w(name), access, sharing, sa, creation, attributes, template, transaction, version, param);
return CreateFileW(name, access, sharing, sa, creation, attributes, template);
}

/**************************************************************************
* MoveFileWithProgressA (KERNEL32.@)
*/
Expand Down

0 comments on commit 776103e

Please sign in to comment.