Video Surveilance Software won't start

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
AndyF
Newbie
Newbie
Posts: 4
Joined: Mon May 15, 2023 5:35 am

Video Surveilance Software won't start

Post by AndyF »

Hi!

I'm using WineHQ9.2. I'd like to use https://www.dallmeier.com/de/produkte/s ... sy-compact

After installation it seems to start well, but after some seconds it closes automatically.
I think, this software tries to get some information about hardware-performance, because at commandline I'll get:

wine: Call from 00006FFFFFC7EAD8 to unimplemented function KERNEL32.dll.QueryIdleProcessorCycleTime, aborting
0194:fixme:dbghelp:elf_search_auxv can't find symbol in module

Is it possible to get WineHQ to return dummy-values for unimplemented functions?

regards, Andy
qwertymnb
Level 4
Level 4
Posts: 237
Joined: Sun Jan 17, 2016 4:36 pm

Re: Video Surveilance Software won't start

Post by qwertymnb »

>Is it possible to get WineHQ to return dummy-values for unimplemented functions?

I would guess it's just enough to add a stub that just returns 'FALSE'. If you know how to compile wine might wanna try patch below

Code: Select all

diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec
index 9d5dc076acb..b71f6855702 100644
--- a/dlls/kernel32/kernel32.spec
+++ b/dlls/kernel32/kernel32.spec
@@ -1199,6 +1199,7 @@
 # @ stub QueryProcessAffinityUpdateMode
 @ stdcall -import QueryProcessCycleTime(long ptr)
 @ stdcall -import QueryThreadCycleTime(long ptr)
+@ stdcall QueryIdleProcessorCycleTime(ptr ptr)
 # @ stub QueryThreadProfiling
 @ stdcall -import QueryThreadpoolStackInformation(ptr ptr)
 @ stdcall -arch=win64 QueryUmsThreadInformation(ptr long ptr long ptr)
diff --git a/dlls/kernel32/sync.c b/dlls/kernel32/sync.c
index 53419cd4618..8a01bd3f0c3 100644
--- a/dlls/kernel32/sync.c
+++ b/dlls/kernel32/sync.c
@@ -841,3 +841,9 @@ __ASM_STDCALL_FUNC(InterlockedDecrement, 4,
                   "ret $4")
 
 #endif  /* __i386__ */
+
+BOOL WINAPI QueryIdleProcessorCycleTime(PULONG size, PULONG64* procs)
+{
+       FIXME("stub\n");
+       return FALSE;
+}
Post Reply