diff --git a/dlls/dsound/dsound_main.c b/dlls/dsound/dsound_main.c index 3ea49ccf1f8..01f897460f0 100644 --- a/dlls/dsound/dsound_main.c +++ b/dlls/dsound/dsound_main.c @@ -154,8 +154,7 @@ inline static void setup_dsound_options(void) 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 18fcbec5187..6ed31632c5c 100644 --- a/dlls/x11drv/x11drv_main.c +++ b/dlls/x11drv/x11drv_main.c @@ -196,8 +196,7 @@ static void setup_options(void) /* 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 054d419783c..a08a13411e7 100644 --- a/loader/loadorder.c +++ b/loader/loadorder.c @@ -381,8 +381,7 @@ static HKEY open_app_key( const char *module ) 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 a02d9ddec2b..a7c7656672a 100644 --- a/misc/version.c +++ b/misc/version.c @@ -278,8 +278,7 @@ static void VERSION_Init(void) 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;