SECUR32: add stub implementation for GetComputerObjectName (RESEND)

Mike McCormack mike at codeweavers.com
Mon Jul 12 11:11:04 CDT 2004


Saulius Krasuckas wrote:

> Yes, it helps avoiding crash.  Thanks, Mike.

Sorry for the incomplete patch.

> +@ stdcall GetComputerObjectNameA (long str ptr)
> +@ stdcall GetComputerObjectNameW (long wstr ptr)

Since the strings are pointers to an output buffer, not an input buffer 
you should use ptr, not (w)str.  If not, the relay trace will show 
garbage...

Mike


ChangeLog:
* add stub implementation for GetComputerObjectName
-------------- next part --------------
Index: dlls/secur32/secur32.c
===================================================================
RCS file: /home/wine/wine/dlls/secur32/secur32.c,v
retrieving revision 1.3
diff -u -r1.3 secur32.c
--- dlls/secur32/secur32.c	17 May 2004 21:08:31 -0000	1.3
+++ dlls/secur32/secur32.c	12 Jul 2004 16:05:40 -0000
@@ -25,6 +25,7 @@
 #include "shlwapi.h"
 #include "sspi.h"
 #include "secur32_priv.h"
+#include "secext.h"
 #include "thunks.h"
 
 #include "wine/debug.h"
@@ -878,6 +879,26 @@
         FreeContextBuffer(info);
     }
     return ret;
+}
+
+/***********************************************************************
+ *		GetComputerObjectNameA (SECUR32.@)
+ */
+BOOLEAN WINAPI GetComputerObjectNameA(
+  EXTENDED_NAME_FORMAT NameFormat, LPSTR lpNameBuffer, PULONG nSize)
+{
+    FIXME("%d %p %p\n", NameFormat, lpNameBuffer, nSize);
+    return FALSE;
+}
+
+/***********************************************************************
+ *		GetComputerObjectNameW (SECUR32.@)
+ */
+BOOLEAN WINAPI GetComputerObjectNameW(
+  EXTENDED_NAME_FORMAT NameFormat, LPWSTR lpNameBuffer, PULONG nSize)
+{
+    FIXME("%d %p %p\n", NameFormat, lpNameBuffer, nSize);
+    return FALSE;
 }
 
 /***********************************************************************
Index: dlls/secur32/secur32.spec
===================================================================
RCS file: /home/wine/wine/dlls/secur32/secur32.spec,v
retrieving revision 1.1
diff -u -r1.1 secur32.spec
--- dlls/secur32/secur32.spec	2 Mar 2004 04:57:35 -0000	1.1
+++ dlls/secur32/secur32.spec	12 Jul 2004 16:05:40 -0000
@@ -20,8 +20,8 @@
 @ stdcall ExportSecurityContext(ptr long ptr ptr)
 @ stdcall FreeContextBuffer(ptr)
 @ stdcall FreeCredentialsHandle(ptr)
-@ stub GetComputerObjectNameA
-@ stub GetComputerObjectNameW
+@ stdcall GetComputerObjectNameA(ptr ptr ptr)
+@ stdcall GetComputerObjectNameW(ptr ptr ptr)
 @ stub GetSecurityUserInfo
 @ stub GetUserNameExA
 @ stub GetUserNameExW


More information about the wine-patches mailing list