Marcus Meissner marcus@jet.franken.de wrote:
+static NTAPI void threadpool_workcallback(PTP_CALLBACK_INSTANCE instance, void *context, PTP_WORK work) {
- int *foo = (int*)context;
- (*foo)++;
+}
Although this most likely compiles without warnings 'NTAPI' should be replaced by the correct one, and its placement should be fixed.