No need to call GetModuleFileName16 now that GetModuleFileNameA
handles 16-bit tasks.
diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c
index 3ea49cc..01f8974 100644
--- a/dlls/dsound/dsound_main.c
+++ b/dlls/dsound/dsound_main.c
@@ -154,8 +154,7 @@
ExitProcess(1);
}
- if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) ||
- GetModuleFileNameA( 0, buffer, MAX_PATH ))
+ if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
HKEY tmpkey;
diff --git a/dlls/x11drv/x11drv_main.c b/dlls/x11drv/x11drv_main.c
index 18fcbec..6ed3163 100644
--- a/dlls/x11drv/x11drv_main.c
+++ b/dlls/x11drv/x11drv_main.c
@@ -196,8 +196,7 @@
/* open the app-specific key */
- if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) ||
- GetModuleFileNameA( 0, buffer, MAX_PATH ))
+ if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
HKEY tmpkey;
char *p, *appname = buffer;
diff --git a/loader/loadorder.c b/loader/loadorder.c
index 054d419..a08a134 100644
--- a/loader/loadorder.c
+++ b/loader/loadorder.c
@@ -381,8 +381,7 @@
HKEY hkey, appkey;
char buffer[MAX_PATH+16], *appname;
- if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) &&
- !GetModuleFileNameA( 0, buffer, MAX_PATH ))
+ if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
WARN( "could not get module file name loading %s\n", module );
return 0;
diff --git a/misc/version.c b/misc/version.c
index a02d9dd..a7c7656 100644
--- a/misc/version.c
+++ b/misc/version.c
@@ -278,8 +278,7 @@
static BOOL init_done;
if (init_done) return;
- if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) &&
- !GetModuleFileNameA( 0, buffer, MAX_PATH ))
+ if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
{
WARN( "could not get module file name\n" );
return;