| commit | efa6591fff772c7fc88f3dd26500610f55d6b551 | [log] [tgz] |
|---|---|---|
| author | James Hawkins <truiken@gmail.com> | Wed Mar 28 01:53:57 2007 -0500 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed Mar 28 13:25:03 2007 +0200 |
| tree | 23c556b46f85053d2fbeaeb02cf2b6163edca922 | |
| parent | 3e5f62b2d8d7353f890ca6e4fb27809c9f7dae8f [diff] [blame] |
setupapi: Don't allow relative paths in SetupCopyOEMInf.
diff --git a/dlls/setupapi/misc.c b/dlls/setupapi/misc.c index b1845b7..8257828 100644 --- a/dlls/setupapi/misc.c +++ b/dlls/setupapi/misc.c
@@ -944,6 +944,13 @@ return FALSE; } + /* check for a relative path */ + if (!(*source == '\\' || (*source && source[1] == ':'))) + { + SetLastError(ERROR_FILE_NOT_FOUND); + return FALSE; + } + if (!GetWindowsDirectoryW( target, sizeof(target)/sizeof(WCHAR) )) return FALSE; strcatW( target, inf_oem );