mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
[setupapi]
sync setupapi\dirid.c with wine patch by Samuel Serapion CORE-7663 svn path=/trunk/; revision=63481
This commit is contained in:
parent
a3b5088597
commit
58b39a1ecf
3 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue