Skip to content

Commit 78fc5a2

Browse files
committed
GPU: fix compiling error when -DCUSTOM_PCI_IDS_PATH is used
1 parent 745c041 commit 78fc5a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/detection/gpu/gpu_pci.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
#include "fastfetch_pciids.c.inc"
1111
#endif
1212

13+
#define FF_STR_INDIR(x) #x
14+
#define FF_STR(x) FF_STR_INDIR(x)
15+
1316
static const FFstrbuf* loadPciIds()
1417
{
1518
static FFstrbuf pciids;
@@ -19,7 +22,7 @@ static const FFstrbuf* loadPciIds()
1922

2023
#ifdef FF_CUSTOM_PCI_IDS_PATH
2124

22-
ffReadFileBuffer(FF_STR(FF_CUSTOM_PCI_IDS_PATH), pciids);
25+
ffReadFileBuffer(FF_STR(FF_CUSTOM_PCI_IDS_PATH), &pciids);
2326

2427
#else // FF_CUSTOM_PCI_IDS_PATH
2528

0 commit comments

Comments
 (0)