Module: wine Branch: master Commit: 295f194804d4d504048d17f20e3b1f639b9ee9f2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=295f194804d4d504048d17f20e...
Author: Austin English austinenglish@gmail.com Date: Wed Feb 11 02:38:03 2015 -0600
kernel32: Add SetVolumeMountPointA/W stubs.
---
dlls/kernel32/kernel32.spec | 4 ++-- dlls/kernel32/volume.c | 20 ++++++++++++++++++++ include/winbase.h | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index f49075e..c95c446 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -1465,8 +1465,8 @@ @ stub SetVDMCurrentDirectories @ stdcall SetVolumeLabelA(str str) @ stdcall SetVolumeLabelW(wstr wstr) -@ stub SetVolumeMountPointA -@ stub SetVolumeMountPointW +@ stdcall SetVolumeMountPointA(str str) +@ stdcall SetVolumeMountPointW(wstr wstr) @ stdcall SetWaitableTimer(long ptr long ptr ptr long) @ stdcall SetWaitableTimerEx(long ptr long ptr ptr ptr long) # @ stub SetXStateFeaturesMask diff --git a/dlls/kernel32/volume.c b/dlls/kernel32/volume.c index d396764..59eda44 100644 --- a/dlls/kernel32/volume.c +++ b/dlls/kernel32/volume.c @@ -2167,3 +2167,23 @@ BOOL WINAPI DeleteVolumeMountPointW(LPCWSTR mountpoint) FIXME("(%s), stub!\n", debugstr_w(mountpoint)); return FALSE; } + +/*********************************************************************** + * SetVolumeMountPointA (KERNEL32.@) + */ +BOOL WINAPI SetVolumeMountPointA(LPCSTR path, LPCSTR volume) +{ + FIXME("(%s, %s), stub!\n", debugstr_a(path), debugstr_a(volume)); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + +/*********************************************************************** + * SetVolumeMountPointW (KERNEL32.@) + */ +BOOL WINAPI SetVolumeMountPointW(LPCWSTR path, LPCWSTR volume) +{ + FIXME("(%s, %s), stub!\n", debugstr_w(path), debugstr_w(volume)); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} diff --git a/include/winbase.h b/include/winbase.h index 0d8cede..1eb49b3 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -2407,7 +2407,7 @@ WINBASEAPI BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR); WINBASEAPI BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR); #define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel) WINBASEAPI BOOL WINAPI SetVolumeMountPointA(LPCSTR,LPCSTR); -WINBASEAPI BOOL WINAPI SetVolumeMountPointW(LPCSTR,LPCSTR); +WINBASEAPI BOOL WINAPI SetVolumeMountPointW(LPCWSTR,LPCWSTR); #define SetVolumeMountPoint WINELIB_NAME_AW(SetVolumeMountPoint) WINBASEAPI BOOL WINAPI SetWaitableTimer(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,BOOL); WINBASEAPI BOOL WINAPI SetWaitableTimerEx(HANDLE,const LARGE_INTEGER*,LONG,PTIMERAPCROUTINE,LPVOID,REASON_CONTEXT*,ULONG);