Commit 7015ce30 authored by Alexandre Julliard's avatar Alexandre Julliard

No need to call GetModuleFileName16 now that GetModuleFileNameA

handles 16-bit tasks.
parent 83886f23
...@@ -154,8 +154,7 @@ inline static void setup_dsound_options(void) ...@@ -154,8 +154,7 @@ inline static void setup_dsound_options(void)
ExitProcess(1); ExitProcess(1);
} }
if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) || if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
GetModuleFileNameA( 0, buffer, MAX_PATH ))
{ {
HKEY tmpkey; HKEY tmpkey;
......
...@@ -196,8 +196,7 @@ static void setup_options(void) ...@@ -196,8 +196,7 @@ static void setup_options(void)
/* open the app-specific key */ /* open the app-specific key */
if (GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) || if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
GetModuleFileNameA( 0, buffer, MAX_PATH ))
{ {
HKEY tmpkey; HKEY tmpkey;
char *p, *appname = buffer; char *p, *appname = buffer;
......
...@@ -381,8 +381,7 @@ static HKEY open_app_key( const char *module ) ...@@ -381,8 +381,7 @@ static HKEY open_app_key( const char *module )
HKEY hkey, appkey; HKEY hkey, appkey;
char buffer[MAX_PATH+16], *appname; char buffer[MAX_PATH+16], *appname;
if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) && if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
!GetModuleFileNameA( 0, buffer, MAX_PATH ))
{ {
WARN( "could not get module file name loading %s\n", module ); WARN( "could not get module file name loading %s\n", module );
return 0; return 0;
......
...@@ -278,8 +278,7 @@ static void VERSION_Init(void) ...@@ -278,8 +278,7 @@ static void VERSION_Init(void)
static BOOL init_done; static BOOL init_done;
if (init_done) return; if (init_done) return;
if (!GetModuleFileName16( GetCurrentTask(), buffer, MAX_PATH ) && if (!GetModuleFileNameA( 0, buffer, MAX_PATH ))
!GetModuleFileNameA( 0, buffer, MAX_PATH ))
{ {
WARN( "could not get module file name\n" ); WARN( "could not get module file name\n" );
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment