|
|
| version 1.21, 2005/02/11 21:17:23 | version 1.23, 2005/03/24 04:40:33 |
|---|---|
| Line 5 | Line 5 |
| #endif | #endif |
| #include "resource.h" | #include "resource.h" |
| #include "strres.h" | #include "strres.h" |
| #if defined(UNICODE) && defined(OSLANG_UTF8) | |
| #include "codecnv.h" | |
| #endif | |
| #include "np2.h" | #include "np2.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "commng.h" | #include "commng.h" |
| Line 108 static int flagload(const OEMCHAR *ext, | Line 111 static int flagload(const OEMCHAR *ext, |
| id = DID_YES; | id = DID_YES; |
| ret = statsave_check(path, buf, NELEMENTS(buf)); | ret = statsave_check(path, buf, NELEMENTS(buf)); |
| if (ret & (~STATFLAG_DISKCHG)) { | if (ret & (~STATFLAG_DISKCHG)) { |
| menumbox("Couldn't restart", title, MBOX_OK | MBOX_ICONSTOP); | menumbox(OEMTEXT("Couldn't restart"), title, MBOX_OK | MBOX_ICONSTOP); |
| id = DID_NO; | id = DID_NO; |
| } | } |
| else if ((!force) && (ret & STATFLAG_DISKCHG)) { | else if ((!force) && (ret & STATFLAG_DISKCHG)) { |
| OEMSPRINTF(buf2, "Conflict!\n\n%s\nContinue?", buf); | OEMSPRINTF(buf2, OEMTEXT("Conflict!\n\n%s\nContinue?"), buf); |
| id = menumbox(buf2, title, MBOX_YESNOCAN | MBOX_ICONQUESTION); | id = menumbox(buf2, title, MBOX_YESNOCAN | MBOX_ICONQUESTION); |
| } | } |
| if (id == DID_YES) { | if (id == DID_YES) { |
| Line 322 static DWORD _GetModuleFileName(HMODULE | Line 325 static DWORD _GetModuleFileName(HMODULE |
| } | } |
| return(nSize); | return(nSize); |
| } | } |
| #elif defined(OSLANG_UTF8) | #elif defined(UNICODE) && defined(OSLANG_UTF8) |
| static DWORD _GetModuleFileName(HMODULE hModule, | static DWORD _GetModuleFileName(HMODULE hModule, |
| OEMCHAR *lpFileName, DWORD nSize) { | OEMCHAR *lpFileName, DWORD nSize) { |
| UINT16 ucs2[MAX_PATH]; | UINT16 ucs2[MAX_PATH]; |
| GetModuleFileName(hModule, ucs2, NELEMENTS(ucs2)); | GetModuleFileName(hModule, ucs2, NELEMENTS(ucs2)); |
| nSize = ucscnv_ucs2toutf8(lpFileName, nSize, ucs2, (UINT)-1); | nSize = codecnv_ucs2toutf8(lpFileName, nSize, ucs2, (UINT)-1); |
| if (nSize) { | if (nSize) { |
| nSize--; | nSize--; |
| } | } |