Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58468 Signed-off-by: Nikolay Sivov nsivov@codeweavers.com
From: Nikolay Sivov nsivov@codeweavers.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58468 Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/kernel32/kernel32.spec | 2 +- dlls/kernel32/kernel_main.c | 9 +++++++++ include/winbase.h | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index ff3bdc67b21..83c374d2254 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -268,7 +268,7 @@ @ stdcall CopyLZFile(long long) LZCopy @ stdcall CreateActCtxA(ptr) @ stdcall -import CreateActCtxW(ptr) -# @ stub CreateBoundaryDescriptorA +@ stdcall CreateBoundaryDescriptorA(str long) @ stdcall -import CreateBoundaryDescriptorW(wstr long) @ stdcall -import CreateConsoleScreenBuffer(long long ptr long ptr) @ stdcall -import CreateDirectoryA(str ptr) diff --git a/dlls/kernel32/kernel_main.c b/dlls/kernel32/kernel_main.c index ae16195a550..edf54e84b72 100644 --- a/dlls/kernel32/kernel_main.c +++ b/dlls/kernel32/kernel_main.c @@ -214,3 +214,12 @@ BOOL WINAPI GetSystemRegistryQuota(PDWORD pdwQuotaAllowed, PDWORD pdwQuotaUsed)
return TRUE; } + +/****************************************************************************** + * CreateBoundaryDescriptorA (KERNEL32.@) + */ +HANDLE WINAPI CreateBoundaryDescriptorA(LPCSTR name, ULONG flags) +{ + FIXME("%s, %#lx - stub\n", debugstr_a(name), flags); + return NULL; +} diff --git a/include/winbase.h b/include/winbase.h index 4d23dd58650..d4f1314a44e 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1574,6 +1574,8 @@ WINADVAPI BOOL WINAPI ConvertToAutoInheritPrivateObjectSecurity(PSECURIT WINBASEAPI HANDLE WINAPI CreateActCtxA(PCACTCTXA); WINBASEAPI HANDLE WINAPI CreateActCtxW(PCACTCTXW); #define CreateActCtx WINELIB_NAME_AW(CreateActCtx) +WINBASEAPI HANDLE WINAPI CreateBoundaryDescriptorA(LPCSTR,ULONG); +#define CreateBoundaryDescriptor WINELIB_NAME_AW(CreateBoundaryDescriptor) WINBASEAPI BOOL WINAPI CreateDirectoryA(LPCSTR,LPSECURITY_ATTRIBUTES); WINBASEAPI BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES); #define CreateDirectory WINELIB_NAME_AW(CreateDirectory)
Dmitry Timoshkov (@dmitry) commented about dlls/kernel32/kernel32.spec:
@ stdcall CopyLZFile(long long) LZCopy @ stdcall CreateActCtxA(ptr) @ stdcall -import CreateActCtxW(ptr) -# @ stub CreateBoundaryDescriptorA +@ stdcall CreateBoundaryDescriptorA(str long) @ stdcall -import CreateBoundaryDescriptorW(wstr long)
Probably the stub should be added to kernelbase instead, and imported to kernel32 like for the W variant.
On Tue Jul 8 07:22:20 2025 +0000, Dmitry Timoshkov wrote:
Probably the stub should be added to kernelbase instead, and imported to kernel32 like for the W variant.
Kernelbase does not export this function.
On Tue Jul 8 07:31:10 2025 +0000, Nikolay Sivov wrote:
Kernelbase does not export this function.
It does at least in Windows 10.0.19045.5965. Which version are you checking with?
On Tue Jul 8 07:49:51 2025 +0000, Dmitry Timoshkov wrote:
It does at least in Windows 10.0.19045.5965. Which version are you checking with?
Windows 11 doesn't have it there.