mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Additional change to 24ef81d
This commit is contained in:
parent
0d8e8acf8a
commit
648e14b6f7
@ -46,7 +46,7 @@ HINSTANCE LoadRainmeterLibrary()
|
|||||||
|
|
||||||
WCHAR* GetCommandLineArguments()
|
WCHAR* GetCommandLineArguments()
|
||||||
{
|
{
|
||||||
LPWSTR args = GetCommandLine();
|
WCHAR* args = GetCommandLine();
|
||||||
|
|
||||||
// Skip past (quoted) application path in cmdLine.
|
// Skip past (quoted) application path in cmdLine.
|
||||||
if (*args == L'"')
|
if (*args == L'"')
|
||||||
@ -79,11 +79,7 @@ WCHAR* GetCommandLineArguments()
|
|||||||
** Entry point. In Release builds, the entry point is Main() since the CRT is not used.
|
** Entry point. In Release builds, the entry point is Main() since the CRT is not used.
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
#ifdef _DEBUG
|
|
||||||
int APIENTRY wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
|
int APIENTRY wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
|
||||||
#else
|
|
||||||
EXTERN_C int WINAPI Main()
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
|
||||||
//_CrtSetBreakAlloc(000);
|
//_CrtSetBreakAlloc(000);
|
||||||
@ -142,4 +138,13 @@ EXTERN_C int WINAPI Main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef _DEBUG
|
||||||
|
EXTERN_C int WINAPI Main()
|
||||||
|
{
|
||||||
|
int result = wWinMain(NULL, NULL, NULL, 0);
|
||||||
|
TerminateProcess(GetCurrentProcess(), result);
|
||||||
|
return 0; // Never reached.
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user