Commit 18d3ad83 authored by Dave Pickles's avatar Dave Pickles Committed by Alexandre Julliard

Stub for SetVolumeLabel().

parent 991fc358
......@@ -1202,7 +1202,27 @@ BOOL WINAPI GetVolumeInformationW( LPCWSTR root, LPWSTR label,
return ret;
}
BOOL WINAPI SetVolumeLabelA(LPCSTR rootpath,LPCSTR volname) {
/***********************************************************************
* SetVolumeLabelA (KERNEL32.675)
*/
BOOL WINAPI SetVolumeLabelA(LPCSTR rootpath,LPCSTR volname)
{
FIXME_(dosfs)("(%s,%s),stub!\n",rootpath,volname);
return TRUE;
}
/***********************************************************************
* SetVolumeLabelW (KERNEL32.676)
*/
BOOL WINAPI SetVolumeLabelW(LPCWSTR rootpath,LPCWSTR volname)
{
LPSTR xroot, xvol;
BOOL ret;
xroot = HEAP_strdupWtoA( GetProcessHeap(), 0, rootpath);
xvol = HEAP_strdupWtoA( GetProcessHeap(), 0, volname);
ret = SetVolumeLabelA( xroot, xvol );
HeapFree( GetProcessHeap(), 0, xroot );
HeapFree( GetProcessHeap(), 0, xvol );
return ret;
}
......@@ -1680,6 +1680,9 @@ BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD);
#define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes)
UINT WINAPI SetHandleCount(UINT);
#define SetSwapAreaSize(w) (w)
BOOL WINAPI SetVolumeLabelA(LPCSTR,LPCSTR);
BOOL WINAPI SetVolumeLabelW(LPCWSTR,LPCWSTR);
#define SetVolumeLabel WINELIB_NAME_AW(SetVolumeLabel)
DWORD WINAPI SizeofResource(HMODULE,HRSRC);
#define UnlockSegment(handle) GlobalUnfix((HANDLE)(handle))
DWORD WINAPI VerLanguageNameA(UINT,LPSTR,UINT);
......
......@@ -694,7 +694,7 @@ import ntdll.dll
673 stdcall SetTimeZoneInformation(ptr) SetTimeZoneInformation
674 stdcall SetUnhandledExceptionFilter(ptr) SetUnhandledExceptionFilter
675 stdcall SetVolumeLabelA(str str) SetVolumeLabelA
676 stub SetVolumeLabelW
676 stdcall SetVolumeLabelW(wstr wstr) SetVolumeLabelW
677 stdcall SetupComm(long long long) SetupComm
678 stdcall SizeofResource(long long) SizeofResource
679 stdcall Sleep(long) Sleep
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment