Commit 0e549767 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Vitaly Lipatov

kernel32: Make GetDriveType() always return DRIVE_FIXED for C: (eterbug #14223).

parent 89ae1f2f
...@@ -619,6 +619,12 @@ UINT WINAPI DECLSPEC_HOTPATCH GetDriveTypeW( LPCWSTR root ) ...@@ -619,6 +619,12 @@ UINT WINAPI DECLSPEC_HOTPATCH GetDriveTypeW( LPCWSTR root )
break; break;
} }
} }
/* Make GetDriveType() always return DRIVE_FIXED for C: (eterbug #14223). */
if ((root[0] == 'C' || root[0] == 'c') && root[1] == ':')
ret = DRIVE_FIXED;
TRACE( "%s -> %d\n", debugstr_w(root), ret ); TRACE( "%s -> %d\n", debugstr_w(root), ret );
return ret; return ret;
} }
......
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