PATCH: GetVolumePathName

Marcus Meissner marcus at jet.franken.de
Thu Jun 2 02:16:05 CDT 2005


Hi,

Adding the stubs of the volume handling had the effect of VirtualDub no longer
working. (It does GetProcAddress on them.)

This adds simple stubs and VirtualDub is happy again.

winehq bug 3020.

Ciao, Marcus

Changelog:
	Added stubs for GetVolumePathName(A,W).

Index: dlls/kernel/kernel32.spec
===================================================================
RCS file: /home/wine/wine/dlls/kernel/kernel32.spec,v
retrieving revision 1.154
diff -u -r1.154 kernel32.spec
--- dlls/kernel/kernel32.spec	23 May 2005 12:14:09 -0000	1.154
+++ dlls/kernel/kernel32.spec	2 Jun 2005 07:13:44 -0000
@@ -526,8 +526,8 @@
 @ stdcall GetVolumeInformationW(wstr ptr long ptr ptr ptr ptr long)
 @ stub GetVolumeNameForVolumeMountPointA
 @ stdcall GetVolumeNameForVolumeMountPointW(wstr long long)
-@ stub GetVolumePathNameA
-@ stub GetVolumePathNameW
+@ stdcall GetVolumePathNameA(str ptr long)
+@ stdcall GetVolumePathNameW(wstr ptr long)
 @ stdcall GetWindowsDirectoryA(ptr long)
 @ stdcall GetWindowsDirectoryW(ptr long)
 @ stub GetWriteWatch
Index: dlls/kernel/volume.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/volume.c,v
retrieving revision 1.26
diff -u -r1.26 volume.c
--- dlls/kernel/volume.c	6 May 2005 15:44:32 -0000	1.26
+++ dlls/kernel/volume.c	2 Jun 2005 07:13:44 -0000
@@ -1357,3 +1357,23 @@
     if (root && !(rootW = FILE_name_AtoW( root, FALSE ))) return FALSE;
     return GetDiskFreeSpaceW( rootW, cluster_sectors, sector_bytes, free_clusters, total_clusters );
 }
+
+/***********************************************************************
+ *           GetVolumePathNameA   (KERNEL32.@)
+ */
+BOOL WINAPI GetVolumePathNameA(LPCSTR filename, LPSTR volumepathname, DWORD buflen)
+{
+    FIXME("(%s, %p, %ld), stub!\n", debugstr_a(filename), volumepathname, buflen);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}
+
+/***********************************************************************
+ *           GetVolumePathNameW   (KERNEL32.@)
+ */
+BOOL WINAPI GetVolumePathNameW(LPCWSTR filename, LPWSTR volumepathname, DWORD buflen)
+{
+    FIXME("(%s, %p, %ld), stub!\n", debugstr_w(filename), volumepathname, buflen);
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    return FALSE;
+}



More information about the wine-patches mailing list