https://bugs.winehq.org/show_bug.cgi?id=50670
Marcos Gutiérrez Batz sacrom@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sacrom@gmail.com
--- Comment #1 from Marcos Gutiérrez Batz sacrom@gmail.com --- I've been hit by the same problem, the problem lies in the interface IFileOperation of the shobjidl.idl, the function:
HRESULT NewItem([in] IShellItem *folder, [in] DWORD attributes, [in, unique, string] LPCWSTR name, [in, unique, string] LPCWSTR template, [in, unique] IFileOperationProgressSink *sink);
While the Windows SDK file counterpart:
HRESULT NewItem( [in] IShellItem *psiDestinationFolder, [in] DWORD dwFileAttributes, [in, unique, string] LPCWSTR pszName, [in, unique, string] LPCWSTR pszTemplateName, [in, unique] IFileOperationProgressSink *pfopsItem);
This is show with just this simple test:
$ cat test.c
#include <shlobj.h>
void main(void) { }
$ winegcc test.c $ wineg++ test.c In file included from /opt/wine-devel/include/wine/windows/shlobj.h:27, from test.c:2: /opt/wine-devel/include/wine/windows/shobjidl.h:16504:17: error: expected ‘,’ or ‘...’ before ‘template’ 16504 | LPCWSTR template, | ^~~~~~~~ test.c:4:1: error: ‘::main’ must return ‘int’ 4 | void main(void) | ^~~~ winegcc: /usr/bin/g++ failed $