From 655b2044d961efb310c718114f165875123d003c Mon Sep 17 00:00:00 2001
From: Patrik Stridvall <ps@leissner.se>
Date: Sun, 8 Jul 2001 22:32:51 +0000
Subject: [PATCH] Fixed issues found by winapi_check.

---
 dlls/ntdll/ntdll.spec     | 28 ++++++++++++++--------------
 dlls/ole32/compobj.spec   |  2 +-
 dlls/oledlg/oledlg.spec   |  2 +-
 dlls/opengl32/make_opengl |  3 ++-
 4 files changed, 18 insertions(+), 17 deletions(-)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 3e5f1cc4803..4662f421ecb 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -607,19 +607,19 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stub ZwCreateToken
 @ stub ZwDelayExecution
 @ stub ZwDeleteFile
-@ stub ZwDeleteKey
-@ stub ZwDeleteValueKey
+@ stdcall ZwDeleteKey(long) NtDeleteKey
+@ stdcall ZwDeleteValueKey(long ptr) NtDeleteValueKey
 @ stdcall ZwDeviceIoControlFile(long long long long long long long long long long) NtDeviceIoControlFile
 @ stub ZwDisplayString
 @ stdcall ZwDuplicateObject(long long long long long long long) NtDuplicateObject
 @ stdcall ZwDuplicateToken(long long long long long long) NtDuplicateToken
 @ stub ZwEnumerateBus
-@ stub ZwEnumerateKey
-@ stub ZwEnumerateValueKey
+@ stdcall ZwEnumerateKey(long long long ptr long ptr) NtEnumerateKey
+@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
 @ stub ZwExtendSection
 @ stub ZwFlushBuffersFile
 @ stub ZwFlushInstructionCache
-@ stub ZwFlushKey
+@ stdcall ZwFlushKey(long) NtFlushKey
 @ stub ZwFlushVirtualMemory
 @ stub ZwFlushWriteBuffer
 @ stub ZwFreeVirtualMemory
@@ -632,13 +632,13 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stub ZwInitializeRegistry
 @ stdcall ZwListenPort(long long) NtListenPort
 @ stub ZwLoadDriver
-@ stub ZwLoadKey
+@ stdcall ZwLoadKey(ptr ptr) NtLoadKey
 @ stub ZwLockFile
 @ stub ZwLockVirtualMemory
 @ stub ZwMakeTemporaryObject
 @ stdcall ZwMapViewOfSection(long long long long long long long long long long) NtMapViewOfSection
 @ stub ZwNotifyChangeDirectoryFile
-@ stub ZwNotifyChangeKey
+@ stdcall ZwNotifyChangeKey(long long ptr ptr ptr long long ptr long long) NtNotifyChangeKey
 @ stdcall ZwOpenDirectoryObject(long long long) NtOpenDirectoryObject
 @ stdcall ZwOpenEvent(long long long) NtOpenEvent
 @ stub ZwOpenEventPair
@@ -674,7 +674,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stdcall ZwQueryInformationToken(long long long long long) NtQueryInformationToken
 @ stub ZwQueryIntervalProfile
 @ stub ZwQueryIoCompletion
-@ stub ZwQueryKey
+@ stdcall ZwQueryKey(long long ptr long ptr) NtQueryKey
 @ stub ZwQueryMutant
 @ stdcall ZwQueryObject(long long long long long) NtQueryObject
 @ stub ZwQueryPerformanceCounter
@@ -687,7 +687,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stdcall ZwQuerySystemTime(ptr) NtQuerySystemTime
 @ stub ZwQueryTimer
 @ stub ZwQueryTimerResolution
-@ stub ZwQueryValueKey
+@ stdcall ZwQueryValueKey(long ptr long ptr long ptr) NtQueryValueKey
 @ stub ZwQueryVirtualMemory
 @ stdcall ZwQueryVolumeInformationFile(long ptr ptr long long) NtQueryVolumeInformationFile
 @ stub ZwRaiseException
@@ -701,16 +701,16 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stub ZwReleaseProcessMutant
 @ stub ZwReleaseSemaphore
 @ stub ZwRemoveIoCompletion
-@ stub ZwReplaceKey
+@ stdcall ZwReplaceKey(ptr long ptr) NtReplaceKey
 @ stub ZwReplyPort
 @ stdcall ZwReplyWaitReceivePort(long long long long) NtReplyWaitReceivePort
 @ stub ZwReplyWaitReplyPort
 @ stub ZwRequestPort
 @ stdcall ZwRequestWaitReplyPort(long long long) NtRequestWaitReplyPort
 @ stub ZwResetEvent
-@ stub ZwRestoreKey
+@ stdcall ZwRestoreKey(long long long) NtRestoreKey
 @ stdcall ZwResumeThread(long long) NtResumeThread
-@ stub ZwSaveKey
+@ stdcall ZwSaveKey(long long) NtSaveKey
 @ stub ZwSetContextThread
 @ stub ZwSetDefaultHardErrorPort
 @ stub ZwSetDefaultLocale
@@ -720,7 +720,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stub ZwSetHighWaitLowEventPair
 @ stub ZwSetHighWaitLowThread
 @ stdcall ZwSetInformationFile(long long long long long) NtSetInformationFile
-@ stub ZwSetInformationKey
+@ stdcall ZwSetInformationKey(long long ptr long) NtSetInformationKey
 @ stub ZwSetInformationObject
 @ stdcall ZwSetInformationProcess(long long long long) NtSetInformationProcess
 @ stdcall ZwSetInformationThread(long long long long) NtSetInformationThread
@@ -749,7 +749,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
 @ stdcall ZwTerminateThread(long long) NtTerminateThread
 @ stub ZwTestAlert
 @ stub ZwUnloadDriver
-@ stub ZwUnloadKey
+@ stdcall ZwUnloadKey(long) NtUnloadKey
 @ stub ZwUnlockFile
 @ stub ZwUnlockVirtualMemory
 @ stub ZwUnmapViewOfSection
diff --git a/dlls/ole32/compobj.spec b/dlls/ole32/compobj.spec
index d08748ccc0f..eb1aaac5943 100644
--- a/dlls/ole32/compobj.spec
+++ b/dlls/ole32/compobj.spec
@@ -18,7 +18,7 @@ owner	ole32
 14 stub STRINGFROMIID
 15 pascal CoDisconnectObject(ptr long) CoDisconnectObject
 16 stub CORELEASEMARSHALDATA
-17 pascal16 COFREEUNUSEDLIBRARIES() CoFreeUnusedLibraries
+17 pascal16 CoFreeUnusedLibraries() CoFreeUnusedLibraries
 18 pascal16 IsEqualGUID(ptr ptr) IsEqualGUID16
 19 pascal StringFromCLSID(ptr ptr) StringFromCLSID16
 20 pascal CLSIDFromString(str ptr) CLSIDFromString16
diff --git a/dlls/oledlg/oledlg.spec b/dlls/oledlg/oledlg.spec
index 7ac3324b2a2..28137ba492c 100644
--- a/dlls/oledlg/oledlg.spec
+++ b/dlls/oledlg/oledlg.spec
@@ -28,4 +28,4 @@ debug_channels (ole)
  20 stdcall OleUIInsertObjectW(ptr) OleUIInsertObjectW
  21 stdcall OleUIObjectPropertiesW(ptr) OleUIObjectPropertiesW
  22 stdcall OleUIPasteSpecialW(ptr) OleUIPasteSpecialW
-
+ 23 stdcall OleUIUpdateLinksW(ptr long wstr long) OleUIUpdateLinksW
diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl
index 5edbbc40935..9d4fb951946 100755
--- a/dlls/opengl32/make_opengl
+++ b/dlls/opengl32/make_opengl
@@ -127,9 +127,10 @@ sub GenerateThunk {
     my ($trace_arg) = ("");
 
     # If for opengl_norm.c, generate a nice heading otherwise Patrik won't be happy :-)
+    # Patrik says: Well I would be even happier if a (OPENGL.@) was added as well. Done. :-)
     if ($comment eq 1) {
 	$ret = $ret . "/***********************************************************************\n";
-	$ret = $ret . " *              " . $func_ref->[0] . "\n";
+	$ret = $ret . " *              " . $func_ref->[0] . " (OPENGL.@)\n";
 	$ret = $ret . " */\n";
     }
     $ret = $ret . $func_ref->[1] . " WINAPI wine_" . $func_ref->[0] . "( ";
-- 
GitLab