summaryrefslogtreecommitdiff
path: root/testprogs/win32
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/win32')
-rw-r--r--testprogs/win32/rpcecho/rpcecho.idl2
-rw-r--r--testprogs/win32/rpcecho/server.c12
2 files changed, 14 insertions, 0 deletions
diff --git a/testprogs/win32/rpcecho/rpcecho.idl b/testprogs/win32/rpcecho/rpcecho.idl
index a0d9dbc4c6..38fa58af41 100644
--- a/testprogs/win32/rpcecho/rpcecho.idl
+++ b/testprogs/win32/rpcecho/rpcecho.idl
@@ -146,4 +146,6 @@ interface rpcecho
void echo_TestSurrounding(
[in,out,ref] echo_Surrounding *data
);
+
+ uint16 echo_TestDoublePointer([in] uint16 ***data);
}
diff --git a/testprogs/win32/rpcecho/server.c b/testprogs/win32/rpcecho/server.c
index 888199db3d..17b13f0013 100644
--- a/testprogs/win32/rpcecho/server.c
+++ b/testprogs/win32/rpcecho/server.c
@@ -139,6 +139,18 @@ void echo_TestSurrounding(echo_Surrounding *data)
data->x *= 2;
}
+short echo_TestDoublePointer(short ***data)
+{
+ if (!*data) {
+ return 0;
+ }
+ if (!**data) {
+ return 0;
+ }
+ printf("Incoming double pointer: %d\n", ***data);
+ return ***data;
+}
+
void main(int argc, char **argv)
{
RPC_STATUS status;