Reactos

[SETUPAPI] Stub implement `SetupQueryInfVersionInformation` (#7769)

Sync SetupQueryInfVersionInformation stubs to Wine.

The new synced stubs set ERROR_CALL_NOT_IMPLEMENTED as last error and return, rather than raise exception EXCEPTION_WINE_STUB (0x80000100), then the Virtual Box Guest Addition 7.1.6 setup progress can move on.

authored by

Ratin Gao and committed by
GitHub
7a9c744b 6c7d2a2e

+20 -2
+18
dll/win32/setupapi/query.c
··· 693 693 694 694 return TRUE; 695 695 } 696 + 697 + BOOL WINAPI SetupQueryInfVersionInformationA(SP_INF_INFORMATION *info, UINT index, const char *key, char *buff, 698 + DWORD size, DWORD *req_size) 699 + { 700 + FIXME("info %p, index %d, key %s, buff %p, size %ld, req_size %p stub!\n", info, index, debugstr_a(key), buff, 701 + size, req_size); 702 + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 703 + return FALSE; 704 + } 705 + 706 + BOOL WINAPI SetupQueryInfVersionInformationW(SP_INF_INFORMATION *info, UINT index, const WCHAR *key, WCHAR *buff, 707 + DWORD size, DWORD *req_size) 708 + { 709 + FIXME("info %p, index %d, key %s, buff %p, size %ld, req_size %p stub!\n", info, index, debugstr_w(key), buff, 710 + size, req_size); 711 + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); 712 + return FALSE; 713 + }
+2 -2
dll/win32/setupapi/setupapi.spec
··· 475 475 @ stdcall SetupQueryInfFileInformationW(ptr long wstr long ptr) 476 476 @ stdcall SetupQueryInfOriginalFileInformationA(ptr long ptr ptr) 477 477 @ stdcall SetupQueryInfOriginalFileInformationW(ptr long ptr ptr) 478 - @ stub SetupQueryInfVersionInformationA 479 - @ stub SetupQueryInfVersionInformationW 478 + @ stdcall SetupQueryInfVersionInformationA(ptr long str ptr long ptr) 479 + @ stdcall SetupQueryInfVersionInformationW(ptr long wstr ptr long ptr) 480 480 @ stub SetupQuerySourceListA 481 481 @ stub SetupQuerySourceListW 482 482 @ stdcall SetupQuerySpaceRequiredOnDriveA(long str ptr ptr long)