[setupapi]

sync setupapi\dirid.c with wine 
patch by Samuel Serapion
CORE-7663
 

svn path=/trunk/; revision=63481
This commit is contained in:
Christoph von Wittich 2014-05-27 20:33:21 +00:00
parent a3b5088597
commit 58b39a1ecf
3 changed files with 11 additions and 2 deletions

View file

@ -40,7 +40,7 @@ add_library(setupapi SHARED
set_module_type(setupapi win32dll UNICODE)
target_link_libraries(setupapi uuid wine ${PSEH_LIB})
add_delay_importlibs(setupapi shell32 wintrust)
add_delay_importlibs(setupapi shell32 winspool wintrust)
add_importlibs(setupapi
msvcrt

View file

@ -70,6 +70,7 @@ static const WCHAR *create_system_dirid( int dirid )
WCHAR buffer[MAX_PATH+32], *str;
int len;
DWORD needed;
switch(dirid)
{
@ -122,8 +123,14 @@ static const WCHAR *create_system_dirid( int dirid )
return get_csidl_dir(CSIDL_PROFILE);
case DIRID_LOADER:
return C_Root; /* FIXME */
case DIRID_PRINTPROCESSOR:
if (!GetPrintProcessorDirectoryW(NULL, NULL, 1, (LPBYTE)buffer, sizeof(buffer), &needed))
{
WARN( "cannot retrieve print processor directory\n" );
return get_unknown_dirid();
}
break;
case DIRID_COLOR: /* FIXME */
case DIRID_PRINTPROCESSOR: /* FIXME */
default:
FIXME( "unknown dirid %d\n", dirid );
return get_unknown_dirid();

View file

@ -31,6 +31,8 @@
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <wingdi.h>
#include <winspool.h>
#include <wincon.h>
#include <objbase.h>
#include <cfgmgr32.h>