summaryrefslogtreecommitdiff
path: root/testprogs/win32
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/win32')
-rw-r--r--testprogs/win32/rpcecho/client.c17
-rw-r--r--testprogs/win32/rpcecho/server.c2
2 files changed, 19 insertions, 0 deletions
diff --git a/testprogs/win32/rpcecho/client.c b/testprogs/win32/rpcecho/client.c
index 1724f482c3..9d06f8e311 100644
--- a/testprogs/win32/rpcecho/client.c
+++ b/testprogs/win32/rpcecho/client.c
@@ -301,6 +301,23 @@ void main(int argc, char **argv)
continue;
}
+ if (strcmp(argv[0], "double") == 0) {
+ typedef unsigned short uint16;
+ uint16 v = 13;
+ uint16 *pv = &v;
+ uint16 **ppv = &pv;
+ uint16 ret;
+
+ argc -= 1;
+ argv += 1;
+
+ ret = echo_TestDoublePointer(&ppv);
+
+ printf("TestDoublePointer v=%d ret=%d\n", v, ret);
+
+ continue;
+ }
+
if (strcmp(argv[0], "sleep") == 0) {
long arg, result;
diff --git a/testprogs/win32/rpcecho/server.c b/testprogs/win32/rpcecho/server.c
index 17b13f0013..b5127596df 100644
--- a/testprogs/win32/rpcecho/server.c
+++ b/testprogs/win32/rpcecho/server.c
@@ -142,9 +142,11 @@ void echo_TestSurrounding(echo_Surrounding *data)
short echo_TestDoublePointer(short ***data)
{
if (!*data) {
+ printf("WARNING: *data == NULL\n");
return 0;
}
if (!**data) {
+ printf("WARNING: **data == NULL\n");
return 0;
}
printf("Incoming double pointer: %d\n", ***data);