summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java')
-rw-r--r--src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java b/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
index 17d4adc..884ac39 100644
--- a/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
+++ b/src/java/jogamp/common/os/WindowsDynamicLinkerImpl.java
@@ -66,4 +66,9 @@ public class WindowsDynamicLinkerImpl implements DynamicLinker {
FreeLibrary(libraryHandle);
}
+ public String getLastError() {
+ final int err = GetLastError();
+ return "Last error: 0x"+Integer.toHexString(err)+" ("+err+")";
+ }
+
}